Sun Java System Web Server 7.0 NSAPI Developer's Guide

PERM_CALLOC

The PERM_CALLOC macro is a platform-independent substitute for the C library routine calloc. It 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)

Returns

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, PERM_FREE, PERM_STRDUP, PERM_MALLOC, PERM_REALLOC