ber_bvdup

Returns a copy of a berval structure.

Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h> or <lber.h>
  
  struct berval *ber_bvdup (
     const struct berval  *bv);
  

Parameters

bv

(IN) Points to a structure to return.

Return Values

Returns a pointer to a berval structure on success; otherwise, returns NULL on failure.

Remarks

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.

See Also

ber_bvfree