// my_func() puts up to len bytes into buffer int my_func(void *p_struct, char *buffer, int len)