utils.h (579B)
1 /* This work is in the public domain. See COPYING file for details. */ 2 3 #ifndef UTILS_H 4 #define UTILS_H 5 6 #define TRUE 1 7 #define FALSE 0 8 9 #include <stddef.h> 10 11 struct input_list { 12 char *name; 13 char *value; 14 struct input_list *next; 15 }; 16 17 void fatal(const char *, ...); 18 void *emalloc(size_t); 19 void *ecalloc(size_t, size_t); 20 void *erealloc(void *, size_t); 21 char *read_file(const char *); 22 void parse_html_str(char *); 23 24 struct input_list * 25 input_list_new(char *); 26 void input_list_free(struct input_list *); 27 char *input_list_find(struct input_list *, char *); 28 29 #endif /* UTILS_H */