Perm_Malloc - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Returns
void
Parameters
is a
void *ptr
(void *)
created by

PERM_MALLOC

undefined.
Example
char *name;
name = (char *) PERM_MALLOC(256);
...
PERM_FREE(name);
See also
FREE, MALLOC, CALLOC, REALLOC, STRDUP, PERM_MALLOC, PERM_CALLOC,
PERM_REALLOC, PERM_STRDUP
PERM_MALLOC
The
macro is a platform-independent substitute for the C library
PERM_MALLOC
routine
. It provides allocation of memory that persists after the request that
malloc
is being processed has been completed. If pooled memory has been disabled in the
configuration file (with the
both obtain their memory from the system heap.
Syntax
void *PERM_MALLOC(int size)
Returns
A void pointer to a block of memory
Parameters
is the number of bytes to allocate.
int size
Example
/* Allocate 256 bytes for a name */
char *name;
name = (char *) PERM_MALLOC(256);
See also
PERM_FREE, PERM_STRDUP, PERM_CALLOC, PERM_REALLOC, MALLOC, FREE,
CALLOC, STRDUP, REALLOC
pointer to block of memory. If the pointer is not one
,
, or
PERM_CALLOC
PERM_STRDUP
built-in SAF),
pool-init
NSAPI Functions (in Alphabetical Order)
, the behavior is
and MALLOC
PERM_MALLOC
Chapter 5
NSAPI Function Reference
163

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents