Sorts an array of values retrieved from an ldap_get_values function.
#include <ldap.h>
int ldap_sort_values (
LDAP *ld,
char **vals,
int (*cmp) (const void *, const void *));
(IN) Points to the handle of the LDAP session.
(IN) Points to the array of values to sort.
(IN) Points to the function to use for sorting.This function returns an int and has two void pointers for parameters. The ldap_sort_strcasecmp function can be used for this parameter to compare ASCII strings.
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. See |