HM_malloc()

Allocates a block of memory.

Syntax

void * HM_malloc(int size);

Type

HyperMesh hmlib Function

Inputs

size
The size of the wanted block in bytes.

Example

If successful, HM_malloc()returns a pointer to the block of memory. If unsuccessful, HM_malloc() calls HM_terminate() with an appropriate error message, and program execution is terminated.

Errors

None.