Slapi_Ch_Realloc() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

The returned pointer should be freed by calling
See Also
slapi_ch_free()
slapi_ch_calloc()

slapi_ch_realloc()

slapi_ch_strdup()
slapi_ch_realloc()
Changes the size of a block of allocated memory.
Syntax
#include "slapi-plugin.h"
char * slapi_ch_realloc( char *block, unsigned long size );
Parameters
This function takes the following parameters:
block
size
Returns
This function returns a pointer to the reallocated space of memory. If space cannot
be allocated, e.g., no more virtual memory exists, the
Memory Concerns
This function terminates the
if memory cannot be allocated.
The block parameter passed to
pointer that was allocated using a
slapi_ch_calloc()
freed by calling
See Also
slapi_ch_free()
slapi_ch_calloc()
Pointer to an existing block of allocated memory.
New size of the block of memory you want allocated.
server with an "out of memory" error message
slapd
slapi_ch_realloc()
slapi
, or
slapi_ch_strdup()
.
slapi_ch_free()
Functions for Managing Memory
slapi_ch_free()
program terminates.
slapd
should be the address of a
call such as
slapi_ch_malloc()
. The returned pointer should be
Chapter 15
.
,
Function Reference
307

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents