Decodes a BerElement, similar to the sscanf function.
#include <ldap.h> or <lber.h>
ber_tag_t ber_scanf (
BerElement *ber,
const char *fmt,
...);
(IN) Points to a BerElement returned by the ber_init function.
(IN) Points to the format modifiers to use when interpreting the BerElement bytes.
(OUT) Returns pointers to data values returned by the function.
Returns a non-LBER_ERROR value on success; otherwise, returns LBER_ERROR on failure.
The ber_scanf function keeps some of the state information with the ber parameter so that the ber_scanf function can be called iteratively to sequentially read from the BerElement.
The results of successfully calling the ber_scanf function are stored in additional parameters.
The fmt parameter can have the following values.