Returns a copy of a berval structure.
#include <ldap.h> or <lber.h>
struct berval *ber_bvdup (
const struct berval *bv);
(IN) Points to a structure to return.
Returns a pointer to a berval structure on success; otherwise, returns NULL on failure.
The bv_val field in the returned berval structure points to a different area of memory than the original bv_val field of the bv parameter.
The berval structures created by the ber_bvdup function should be freed by a call to the ber_bvfree function.