util.h (327B)
1 /* See LICENSE file for copyright and license details. */ 2 3 #ifndef UTIL_H 4 #define UTIL_H 5 6 #include <stddef.h> 7 8 void die(const char *fmt, ...); 9 void warn(const char *fmt, ...); 10 void *ecalloc(size_t nmemb, size_t size); 11 void *emalloc(size_t size); 12 char *estrdup(const char *s); 13 int mkdirp(const char *path); 14 15 #endif /* UTIL_H */