HM_calloc()

Allocates a block of memory and clears it to zero.

Syntax

void * HM_calloc(int n, int size);

Type

HyperMesh hmlib Function

Description

Inputs

n
The number of items to be stored in the block.
size
The size of the items.

Example

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

Errors

None.