ldap_count_values

Returns the number of strings in the array.

LDAP Version:v2 or higher
Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  int ldap_count_values (
     char   **vals);
  
  

Parameters

vals

(IN) Points to the array of values returned by the ldap_get_values or ldap_get_values_len function.

Return Values

>0

Number of values

-1

Failure

Remarks

The ldap_count_values function can be used for attributes that have character string values. If the array contains berval structures (binary data), use the ldap_count_values_len function.

See Also

ldap_get_values_len, ldap_get_values, ldap_count_values_len, ldap_value_free, ldap_value_free_len