Xinqi Bao's Git
1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
2 * 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
));