#ifndef UTIL_H #define UTIL_H #include #include // utility for errors void eprintf(const char *format, ...) __attribute__((format(printf, 1, 2))); void error_out(const char *format, ...) __attribute__((format(printf, 1, 2))); // panic, as the kids say void* emalloc(size_t size, char* alloc_reason); // string functions char* vastrcat_(int dummy, ...); #define vastrcat(...) vastrcat_(0, __VA_ARGS__, NULL) #endif