HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
void slapi_ch_array_free( char **arrayp );
Parameters This function takes the following parameter:
Pointer to the array to be freed. This parameter can be NULL.arrayp
See also
slapi_ch_strdup()
slapi_ch_array_free()
23.3 slapi_ch_bvdup()
Description Makes a copy of an existing berval structure.
Syntax
#include "slapi-plugin.h"
extern struct berval* slapi_ch_bvdup( const struct berval *v );
Parameters This function takes the following parameter:
Pointer to the berval structure that you want to copy.v
Returns This function returns a pointer to the new copy of the berval structure. If the structure
cannot be duplicated, for example, because of insufficient virtual memory, the slapd program
terminates.
Memory concerns The contents of the v parameter are not altered by this function. The returned
berval structure should be freed by calling ber_bvfree(), which is an LDAP API function;
see the Mozilla LDAP SDK for C Programmer's Guide.
See also
“slapi_ch_bvdup()”
ber_bvfree()
23.4 slapi_ch_bvecdup()
Description Makes a copy of an array of existing berval structures.
Syntax
#include "slapi-plugin.h"
extern struct berval** slapi_ch_bvecdup (const struct berval **v);
Parameters This function takes the following parameter:
Pointer to the array of berval structures that you want to copy.v
Returns This function returns a pointer to an array of the new copy of the berval structures.
If the structures cannot be duplicated, for example, because of insufficient virtual memory, the
slapd program terminates.
Memory concerns The contents of the v parameter are not altered by this function. The returned
berval structure should be freed by calling ber_bvfree(), which is an LDAP API function;
see the Mozilla LDAP SDK for C Programmer's Guide.
See also
“slapi_ch_bvdup()”
ber_bvfree()
206 Functions for managing memory