Initial Release 6

Function : LDAP
ldap_count_messages - Get the number of messages contained in a chain of results.
----------------------------------------------------------------------------------------------------------

#include <ldap.h>

int LNPUBLIC ldap_count_messages(
LDAP *ld,
LDAPMessage *res);

Description :

This function returns the number of messages contained in a chain of results. This can also be used to count the number of messages that remain in a chain if called with a message returned by ldap_first_message or ldap_next_message.
Parameters :

Sample Usage :

mCount = ldap_count_messages(ld, res);

See Also :

ldap_first_message
----------------------------------------------------------------------------------------------------------