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

PERM_MALLOC() Macro

The PERM_MALLOC macro is a platform-independent substitute for the C library routine malloc. This macro provides allocation of memory that persists after the request that is being processed has been completed.

Syntax

void *PERM_MALLOC(int size)

Return Values

A void pointer to a block of memory.

Parameters

int size is the number of bytes to allocate.

Example

/* Allocate 256 bytes for a name */
char *name;
name = (char *) PERM_MALLOC(256);

See Also

MALLOC() Macro, PERM_FREE() Macro, PERM_STRDUP() Macro, PERM_CALLOC() Macro, PERM_REALLOC() Macro