Xinqi Bao's Git
b7798d29f040fa57b4e91a4e86e7d0a85d96a4cf
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
);