util.h (442B)
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 #define UNUSED(x) (void)(x) 10 11 #include <stddef.h> 12 13 void fatal(const char *, ...); 14 void *emalloc(size_t); 15 void *ecalloc(size_t, size_t); 16 void *erealloc(void *, size_t); 17 FILE *file_open(char *); 18 void file_print(FILE *, FILE *); 19 void file_close(FILE *); 20 void parse_html_str(char *); 21 22 #endif /* UTILS_H */