1 /* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
2 * See LICENSE file for license details.
15 badmalloc(unsigned int size) {
16 eprint("fatal: could not malloc() %u bytes\n", size);
22 emalloc(unsigned int size) {
23 void *res = malloc(size);
31 eprint(const char *errstr, ...) {
35 vfprintf(stderr, errstr, ap);
41 estrdup(const char *str) {
42 void *res = strdup(str);
45 badmalloc(strlen(str));