Hello,
yes, generated function is not correct, expecting string instead of the pointer. We also need entry from the configuration, I expect you use something like
void p1(char *var)
That is not correct, it should be
void p1(int *var)
and in Ring code you then use
spc = int2bytes(10) // allocates memory for the integer of value 10
ptr = varptr(:spc,"int") // makes integer pointer