Makes a copy of an array of existing berval structures.
#include "slapi-plugin.h" extern struct berval** slapi_ch_bvecdup (const struct berval **v);
This function takes the following parameters:
Pointer to the array of berval structures that you want to copy.
This function returns a pointer to an array of the new copy of the berval structures. If the structures cannot be duplicated (for example, if no more virtual memory exists), the slapd program terminates.
The contents of the v parameter are not altered by this function. The returned berval structure should be freed by calling ber_bvfree(3LDAP), an LDAP API function.
ber_bvfree(3LDAP)