Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide

slapi_ch_bvdup()

Makes a copy of an existing berval structure.

Syntax

#include "slapi-plugin.h"
struct berval* slapi_ch_bvdup( const struct berval *v );

Parameters

This function takes the following parameter:

v

Pointer to the berval structure that you want to copy.

Returns

This function returns a pointer to the new copy of the berval structure. If the structure cannot be duplicated (for example, if no more virtual memory exists), 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(3LDAP), which is an LDAP API function.

See Also

ber_bvfree(3LDAP)

slapi_ch_bvecdup()