C language function:ldap_count_references sample codes

Search sample code in the internet.It is the result.


TITLE : C API for Oracle Internet Directory
The ldap_first_entry() and ldap_next_entry() routines are used to step through and retrieve the list of entries from a search result chain. The ldap_first_reference() and ldap_next_reference() routines are used to step through and retrieve the list of continuation references from a search result chain. ldap_count_entries() is used to count the number of entries returned. ldap_count_references() is used to count the number of references returned........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm


TITLE : C API for Oracle Internet Directory
int ldap_count_references( LDAP *ld, LDAPMessage *res );.......
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : C API for Oracle Internet Directory
ldap_count_references() returns the number of references contained in a chain of search results; if an error occurs such as the res parameter being invalid, -1 is returned. The ldap_count_references() call can also be used to count the number of references that remain in a chain........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : Chapter 5 Searching a LDAP Directory
* If you want to retrieve just the search references from the chain, call ldap_first_reference() and ldap_next_reference(). Both of these functions return a pointer to an LDAPMessage structure that represents a search reference. You can get the count of the search references in the chain by calling ldap_count_references()........
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
TITLE : Chapter 5 Searching a LDAP Directory
num_refs = ldap_count_references( ld, res );.......
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
search Google

https://www.google.com/#q=ldap_count_references