2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
16 badmalloc(unsigned int size)
18 eprint("fatal: could not malloc() %u bytes\n", size);
24 emalloc(unsigned int size)
26 void *res = malloc(size);
33 eprint(const char *errstr, ...)
38 vfprintf(stderr, errstr, ap);
44 estrdup(const char *str)
46 void *res = strdup(str);
48 badmalloc(strlen(str));