1 /* See LICENSE file for copyright and license details. */
10 ecalloc(size_t nmemb
, size_t size
)
13 p
= calloc(nmemb
, size
);
14 FAIL_IF(p
== NULL
, "calloc");
19 die(const char *fmt
, ...)
24 (void)vfprintf(stderr
, fmt
, ap
);
27 if (fmt
[0] != '\0' && fmt
[strlen(fmt
)-1] == ':') {
28 (void)fputc(' ', stderr
);
31 (void)fputc('\n', stderr
);