coan 4.2.4
The Memory component internals.
Collaboration diagram for The Memory component internals.:

Files

file  memory.c

Functions

static void * no_alloc_fail (void *ptr)

Function Documentation

static void* no_alloc_fail ( void *  ptr) [static]

Terminate the program with an out of memory diagnositic if a putative heap pointer is null.

Parameters:
ptrPointer to test.
Returns:
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().

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines