Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

PERM_CALLOC() Macro

The PERM_CALLOC macro is a platform-independent substitute for the C library routine calloc. This macro allocates size bytes of memory and initializes the memory to zeros. The memory persists after processing the current request has been completed. The memory should be explicitly freed by a call to PERM_FREE.

Syntax

void *PERM_CALLOC(int size)

Return Values

A void pointer to a block of memory.

Parameters

int size is the number of bytes to allocate.

Example

char **name;
name = (char **) PERM_CALLOC(100 * sizeof(char *));

See Also

CALLOC() Macro, PERM_FREE() Macro, PERM_STRDUP() Macro, PERM_MALLOC() Macro, PERM_REALLOC() Macro