#include #include #include #include #include #include int help_compare(const void *first, const void *second) { const help_t *f = (const help_t *)first; const help_t *s = (const help_t *)second; int r = 0; if ((r = strcmp(f->prefix, s->prefix)) != 0) return r; return strcmp(f->line, s->line); } help_t *help_new(char *prefix, char *line) { help_t *help = NULL; help = faux_zmalloc(sizeof(*help)); help->prefix = prefix; help->line = line; return help; } void help_free(void *ptr) { help_t *help = (help_t *)ptr; faux_free(help->prefix); faux_free(help->line); faux_free(help); }