Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 294

Table of Contents

Advertisement

Functions for Managing Memory
Returns
This function returns a pointer to an array of the new copy of the
structures. If the structures cannot be duplicated, for example, if no more virtual
memory exists, the
Memory Concerns
The contents of the
berval
function (see the Netscape LDAP SDK for C Programmer's Guide).
See Also
slapi_ch_bvdup()
ber_bvfree()
slapi_ch_calloc()
Allocates space for an array of a number of elements of a specified size.
Syntax
#include "slapi-plugin.h"
char * slapi_ch_calloc( unsigned long nelem, unsigned long size );
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()
294
Netscape Directory Server Plug-In Programmer's Guide • August 2002
program terminates.
slapd
parameter are not altered by this function. The returned
v
structure should be freed by calling
Number of elements for which you want to allocate memory.
Size, in bytes, of the element for which you want to allocate
memory.
.
ber_bvfree()
server with an "out of memory" error message
slapd
berval
, which is an LDAP API
slapd

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents