coan 4.2.4
|
![]() |
Files | |
file | memory.c |
Functions | |
static void * | no_alloc_fail (void *ptr) |
static void* no_alloc_fail | ( | void * | ptr | ) | [static] |
Terminate the program with an out of memory diagnositic if a putative heap pointer is null.
ptr | Pointer to test. |
ptr
, provided it is not null. Definition at line 56 of file memory.c.
References bail(), and GRIPE_OUT_OF_MEMORY.
Referenced by allocate(), callocate(), reallocate(), and zallocate().