Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 297

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, for example, if no more virtual memory exists, the
terminates.
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()
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()
should be the address of a
call such as
slapi_ch_malloc()
. The returned pointer should be
Chapter 15
.
program
slapd
,
Function Reference
297

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents