1 /* See LICENSE file for copyright and license details. */
10 emallocz(unsigned int size) {
11 void *res = calloc(1, size);
14 eprint("fatal: could not malloc() %u bytes\n", size);
19 eprint(const char *errstr, ...) {
23 vfprintf(stderr, errstr, ap);
29 eprintn(const char *errstr, ...) {
33 vfprintf(stderr, errstr, ap);
35 fprintf(stderr, ": %s\n", strerror(errno));