2264 int size, full_size = 0;
2266 static int last_size = 0;
2267 static void *last_buffer = 0;
2281 sscanf(ptr,
"%d", &num);
2282 full_size += size * num;
2283 if( (ptr = strchr(ptr,
';')) )
2291 if(full_size > last_size)
2295 last_buffer =
malloc((
size_t)full_size);
2296 last_size = full_size;
2298 memset(last_buffer, 0, (
size_t)last_size);
2299 buffer_ptr = last_buffer;
2307 sscanf(ptr,
"%d", &num);
2311 if( (ptr = strchr(ptr,
';')) )
2322 full_size = (int) ((
char *)buffer_ptr - (
char *)last_buffer);
void did_read_string(char type, int num, void **buffer_ptr, char **str_ptr)
int get_type_size(char type)
int dic_cmnd_service(char *serv_name, void *serv_address, int serv_size)