Definition at line 1936 of file didMarkus.c.
References Curr_service_format, Curr_service_name, dic_cmnd_service(), did_read_string(), Memory::free(), get_type_size(), Memory::malloc(), size, str, and type.
Referenced by ok_pop_up().
1940 int size, full_size = 0;
1942 static int last_size = 0;
1943 static void *last_buffer = 0;
1957 sscanf(ptr,
"%d", &num);
1958 full_size += size * num;
1959 if( (ptr = strchr(ptr,
';')) )
1967 if(full_size > last_size)
1971 last_buffer =
malloc(full_size);
1972 last_size = full_size;
1974 buffer_ptr = last_buffer;
1982 sscanf(ptr,
"%d", &num);
1986 if( (ptr = strchr(ptr,
';')) )
1997 full_size = (int) ((
char *)buffer_ptr - (
char *)last_buffer);
int get_type_size(char type)
void did_read_string(char type, int num, void **buffer_ptr, char **str_ptr)
int dic_cmnd_service(char *serv_name, void *serv_address, int serv_size)
char Curr_service_name[132]
char Curr_service_format[256]