- or download this
// my_func() puts up to len bytes into buffer
int my_func(void *p_struct, char *buffer, int len)
- or download this
int
my_xs_func(p_struct, OUTLIST buffer, len)
...
RETVAL = my_func(p_struct, buffer, len);
OUTPUT:
RETVAL
- or download this
int
my_xs_func(p_struct, OUTLIST buffer, len)
...
free(tmp_buffer);
OUTPUT:
RETVAL