In file miscfx.h:

void* alcmem

(size_t size)

Safe memory allocation.

Documentation

Safe memory allocation.

Attempts to allocate memory, halting the module with an error_fatal() if memory couldn't be allocated. The arguments are identical to those of malloc(), which this function calls internally.

Parameters:
- size The number of bytes to allocate.
Returns:
a pointer to the block of memory allocated. This function never returns NULL. If an allocation error occurs, the current program is terminated.

Alphabetic index



This page was generated with the help of DOC++.