Perm_Calloc; Perm_Free - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
pblock *pb
See also
pblock_copy, pblock_create, pblock_find, pblock_free,
pblock_nvinsert, pblock_remove, pblock_pblock2str

PERM_CALLOC

The
PERM_CALLOC
routine
request that is being processed has been completed. If pooled memory has been
disabled in the configuration file (with the
and
CALLOC
Syntax
void *PERM_CALLOC(int num, int size)
Returns
A void pointer to a block of memory
Parameters
int num
int size
Example
/* Allocate 256 bytes for a name */
char **name;
name = (char **) PERM_CALLOC(100, sizeof(char *));
See also
PERM_FREE, PERM_STRDUP, PERM_MALLOC, PERM_REALLOC, MALLOC, FREE,
CALLOC, STRDUP, REALLOC

PERM_FREE

The
PERM_FREE
routine
PERM_MALLOC
in the configuration file (with the
both deallocate memory in the system heap.
Syntax
PERM_FREE(void *ptr);
162
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
is the
into which the name-value pairs are stored.
pblock
macro is a platform-independent substitute for the C library
. It allocates num*size bytes of memory that persists after the
calloc
both obtain their memory from the system heap.
is the number of elements to allocate.
is the size in bytes of each element.
macro is a platform-independent substitute for the C library
. It deallocates the persistent space previously allocated by
free
,
, or
PERM_CALLOC
pool-init
. If pooled memory has been disabled
PERM_STRDUP
built-in SAF),
pool-init
built-in SAF),
PERM_CALLOC
and FREE
PERM_FREE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents