I’m trying to create a dynamic webpage using ssi. It’s all working if the variable is a string:
char xyz[16];
SSPEC_RESOURCE_ROOTVAR(“xyz”, xyz, PTR16, “%s”)
Unfortunately in my case I want to paste integer variables into the web page. This is working if I fist turn the integre into string:
sprintf(xyz,“%d”, xyz);
I couldn’t find any reference to SSPEC_RESOURCE_ROOTVAR in the manuals. Is there a way to tell the program to expect an integer instead of a string? What is the PTR16 and “%s” in SSPEC_… there for? I managed to print something that looked like the pointer of the integer to the web page but not the value using
int xyz;
SSPEC_RESOURCE_ROOTVAR(“xyz”, &xyz, PTR16, “%d”)
Thanks,
Karsten