ber_next_element

Positions the state of a BerElement to the next element and returns its type.

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>
  
  ber_tag_t ber_next_element (
     BerElement  *ber,
     ber_len_t   *lenPtr,
     char        *opaquePtr);
  

Parameters

ber

(IN) Points to a BerElement structure.

lenPtr

(OUT) Is used for internal use only. Points to the value returned by the ber_first_element function. On subsequent calls, points to the value returned by the ber_next_element function.

opaquePtr

(OUT) Is used for internal use only. Points to the value returned by the ber_first_element function. On subsequent calls, points to the value returned by the ber_next_element function.

Return Values

On success, returns a tag indicating the type of the next element. Returns LBER_DEFAULT if there are no further elements.

Remarks

Use the ber_scanf function to obtain the value of the element.

See Also

ber_scanf