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>
27 ldap_first_entry( LDAP *ld, LDAPMessage *chain )
29 return( chain == NULLMSG || chain->lm_msgtype == LDAP_RES_SEARCH_RESULT
34 LDAPMessage *ldap_next_entry( LDAP *ld, LDAPMessage *entry )
36 if ( entry == NULLMSG || entry->lm_chain == NULLMSG
37 || entry->lm_chain->lm_msgtype == LDAP_RES_SEARCH_RESULT )
40 return( entry->lm_chain );
45 ldap_count_entries( LDAP *ld, LDAPMessage *chain )
49 for ( i = 0; chain != NULL && chain->lm_msgtype
50 != LDAP_RES_SEARCH_RESULT; chain = chain->lm_chain )