2 * Copyright (c) 1990 Regents of the University of Michigan.
9 static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
19 #if defined( DOS ) || defined( _WIN32 )
23 #include <sys/types.h>
24 #include <sys/socket.h>
33 ldap_first_entry( LDAP *ld, LDAPMessage *chain )
35 return( chain == NULLMSG || chain->lm_msgtype == LDAP_RES_SEARCH_RESULT
40 LDAPMessage *ldap_next_entry( LDAP *ld, LDAPMessage *entry )
42 if ( entry == NULLMSG || entry->lm_chain == NULLMSG
43 || entry->lm_chain->lm_msgtype == LDAP_RES_SEARCH_RESULT )
46 return( entry->lm_chain );
51 ldap_count_entries( LDAP *ld, LDAPMessage *chain )
55 for ( i = 0; chain != NULL && chain->lm_msgtype
56 != LDAP_RES_SEARCH_RESULT; chain = chain->lm_chain )