Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 256

Table of Contents

Advertisement

Functions for Managing Memory
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()
slapi_ch_calloc()
slapi_ch_strdup()
slapi_ch_strdup()
Makes a copy of an existing string.
Syntax
#include "slapi-plugin.h"
char * slapi_ch_strdup( char *s );
Parameters
This function takes the following parameters:
s
256
Netscape Directory Server Plug-In Programmer's Guide • May 2002
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()
Pointer to the string you want to copy.
should be the address of a
call such as
slapi_ch_malloc()
. The returned pointer should be
program
slapd
,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents