1 /* (C)opyright MMVI 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 estrdup(const char *str) {
23 void *res = strdup(str);
26 eprint("fatal: could not malloc() %u bytes\n", strlen(str));
31 eprint(const char *errstr, ...) {
35 vfprintf(stderr, errstr, ap);