/* * (C)opyright MMIV-MMVI Anselm R. Garbe * See LICENSE file for license details. */ #include #include #include "cext.h" void * cext_emallocz(unsigned int size) { void *res = calloc(1, size); if(!res) { fprintf(stderr, "fatal: could not malloc() %d bytes\n", (int) size); exit(1); } return res; }