25 genpair->
first = first;
33 val_tostr second_tostr,
char secondstr[],
char str[])
36 first_tostr(gen_pair->
first, firststr);
37 second_tostr(gen_pair->
second, secondstr);
38 snprintf(str, strlen(firststr) + strlen(secondstr) + 6,
"%s%s%s%s%s",
39 "(", firststr,
", ", secondstr,
")");
void generic_pair_t_tostr(generic_pair_t *gen_pair, val_tostr first_tostr, char firststr[], val_tostr second_tostr, char secondstr[], char str[])
void *(* mem_alloc)(size_t size)
void(* val_tostr)(void *val, char str[])
generic_pair_t * generic_pair_t_new(void *first, void *second, mem_alloc m_alloc)