Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 252

Table of Contents

Advertisement

Functions for Managing Memory
ber_bvfree()
slapi_ch_bvecdup()
Makes a copy of an array of existing
Syntax
#include "slapi-plugin.h"
extern struct berval** slapi_ch_bvecdup (const struct berval **v);
Parameters
This function takes the following parameters:
v
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 );
252
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Pointer to the array of berval structures that you want to copy.
program terminates.
slapd
parameter are not altered by this function. The returned
v
structure should be freed by calling
structures.
berval
ber_bvfree()
berval
, which is an LDAP API

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents