1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
2 * See LICENSE file for license details.
13 emalloc(unsigned int size) {
14 void *res = malloc(size);
17 eprint("fatal: could not malloc() %u bytes\n", size);
22 eprint(const char *errstr, ...) {
26 vfprintf(stderr, errstr, ap);
32 estrdup(const char *str) {
33 void *res = strdup(str);
36 eprint("fatal: could not malloc() %u bytes\n", strlen(str));