Positions the state of a BerElement to its first element and returns the type of the first element.
#include <ldap.h> or <lber.h>
ber_tag_t ber_first_element (
BerElement *ber,
ber_len_t *lenPtr,
char **opaquePtr);
(IN) Points to the first element in the constructed type.
(OUT) Is used for internal use only. Use this value in the subsequent call to the ber_next_element function.
(OUT) Is used for internal use only.Use this value in the subsequent call to the ber_next_element function
On success, returns a tag indicating the type of the first element. Returns LBER_DEFAULT if there are no elements.
Use the ber_scanf function to obtain the value of the first element.