1 /* © 2006-2007 Anselm R. Garbe <garbeam at gmail dot com>
2 * © 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
3 * See LICENSE file for license details. */
11 emalloc(unsigned int size) {
12 void *res = malloc(size);
15 eprint("fatal: could not malloc() %u bytes\n", size);
20 eprint(const char *errstr, ...) {
24 vfprintf(stderr, errstr, ap);
30 estrdup(const char *str) {
31 void *res = strdup(str);
34 eprint("fatal: could not malloc() %u bytes\n", strlen(str));