Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 292

Table of Contents

Advertisement

Functions for Managing Memory
Table 15-9
Memory Management Routines
Function
slapi_ch_array_free()
slapi_ch_bvdup()
slapi_ch_bvecdup()
slapi_ch_calloc()
slapi_ch_free()
slapi_ch_free_string()
slapi_ch_malloc()
slapi_ch_realloc()
slapi_ch_strdup()
slapi_ch_array_free()
Frees an existing array.
Syntax
#include "slapi-plugin.h"
void slapi_ch_array_free( char **arrayp );
Parameters
This function takes the following parameter:
arrayp
Description
This function frees the
slapi_ch_bvdup()
Makes a copy of an existing
292
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Description
Frees an existing array.
Makes a copy of an existing berval structure.
Makes a copy of an array of existing berval structures.
Allocates space for an array of a number of elements of a specified size
Frees space allocated by the slapi_ch_malloc(),
slapi_ch_realloc(), and slapi_ch_calloc() functions.
Frees space previously allocated to a string.
Allocates space in memory.
Changes the size of a block of allocated memory.
Makes a copy of an existing string.
Pointer to the array to be freed. This parameter can be NULL.
pointed to by
char **
berval
.
arrayp
structure.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents