Memory Allocation Helpers
-
void *xmalloc(size_t sz)
version of malloc that cannot fail
Parameters
size_t sz
number of bytes to allocate
Description
Call malloc, but only return NULL when sz is zero. Otherwise, abort.
Return
pointer to allocated memory