Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 253

Table of Contents

Advertisement

Parameters
This function takes the following parameters:
nelem
size
Returns
This function returns a pointer to the newly allocated space of memory. If space
cannot be allocated, for example, if no more virtual memory exists, the
program terminates.
Memory Concerns
This function terminates the
if memory cannot be allocated. You should free the returned pointer by calling
slapi_build_control()
See Also
slapi_ch_free()
slapi_ch_malloc()
slapi_ch_realloc()
slapi_ch_strdup()
slapi_ch_free()
Frees space allocated by the
slapi_ch_calloc()
instead of the standard
Syntax
#include "slapi-plugin.h"
void slapi_ch_free( void **ptr );
Number of elements for which you want to allocate memory.
Size, in bytes, of the element for which you want to allocate
memory.
server with an "out of memory" error message
slapd
.
slapi_ch_malloc()
functions and sets the pointer to
C function.
free()
Functions for Managing Memory
,
slapi_ch_realloc()
. Call this function
NULL
Chapter 14
Function Reference
slapd
, and
253

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents