Perm_Realloc; Perm_Strdup - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)

PERM_REALLOC

The
PERM_REALLOC
routine
originally created by
unchanged up to the lesser of the old and new sizes. If the new size is larger, the
new space is uninitialized.
Warning
Calling
STRDUP
Syntax
void *PERM_REALLOC(vod *ptr, int size)
Returns
A void pointer to a block of memory
Parameters
void *ptr
PERM_CALLOC
int size
Example
char *name;
name = (char *) PERM_MALLOC(256);
if (NotBigEnough())
See also
PERM_MALLOC, PERM_FREE, PERM_CALLOC, PERM_STRDUP, MALLOC, FREE,
STRDUP, CALLOC, REALLOC

PERM_STRDUP

The
PERM_STRDUP
routine
request that is being processed has been completed. If pooled memory has been
disabled in the configuration file (with the
and
STRDUP
164
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
macro is a platform-independent substitute for the C library
. It changes the size of a specified memory block that was
realloc
,
MALLOC
for a block that was allocated with
PERM_REALLOC
will not work.
a void pointer to a block of memory created by
, or
PERM_STRDUP
is the number of bytes to which the memory block should be resized.
name = (char *) PERM_REALLOC(512);
macro is a platform-independent substitute for the C library
. It creates a new copy of a string in memory that persists after the
strdup
both obtain their memory from the system heap.
, or
. The contents of the object remains
CALLOC
STRDUP
.
pool-init
,
, or
MALLOC
CALLOC
,
PERM_MALLOC
built-in SAF),
PERM_STRDUP

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents