Xinqi Bao's Git
1 /* See LICENSE file for copyright and license details. */
9 emalloc(unsigned int size
) {
10 void *res
= malloc(size
);
13 eprint("fatal: could not malloc() %u bytes\n", size
);
18 eprint(const char *errstr
, ...) {
22 vfprintf(stderr
, errstr
, ap
);
28 estrdup(const char *str
) {
29 void *res
= strdup(str
);
32 eprint("fatal: could not malloc() %u bytes\n", strlen(str
));