#include <oskit/c/malloc.h>void *mustcalloc(size_t nelt, size_t eltsize);
Calls calloc to allocate memory, asserting that the return is non-zero; i.e., mustcalloc will panic if no memory is available.Note that if NDEBUG is defined, assert will do nothing and this routine is identical to calloc.
- nelt
- Number of elements being allocated.
- eltsize
- Size of each element.
Returns a pointer to the allocated memory if it returns at all.