2 * Copyright (c) 1990 Regents of the University of Michigan.
11 static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
18 #include <ac/socket.h>
19 #include <ac/string.h>
26 ldap_first_entry( LDAP *ld, LDAPMessage *chain )
28 return( chain == NULLMSG || chain->lm_msgtype == LDAP_RES_SEARCH_RESULT
33 LDAPMessage *ldap_next_entry( LDAP *ld, LDAPMessage *entry )
35 if ( entry == NULLMSG || entry->lm_chain == NULLMSG
36 || entry->lm_chain->lm_msgtype == LDAP_RES_SEARCH_RESULT )
39 return( entry->lm_chain );
44 ldap_count_entries( LDAP *ld, LDAPMessage *chain )
48 for ( i = 0; chain != NULL && chain->lm_msgtype
49 != LDAP_RES_SEARCH_RESULT; chain = chain->lm_chain )