Xinqi Bao's Git
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
16 badmalloc(unsigned int size
) {
17 eprint("fatal: could not malloc() %u bytes\n", size
);
23 emalloc(unsigned int size
) {
24 void *res
= malloc(size
);
31 eprint(const char *errstr
, ...) {
35 vfprintf(stderr
, errstr
, ap
);
41 estrdup(const char *str
) {
42 void *res
= strdup(str
);
44 badmalloc(strlen(str
));