LDAP_VERSION(3LDAP)LDAP_VERSION(3LDAP)NAMEldap_version - get version information about the LDAP SDK for C
SYNOPSIS
cc -flag ... file...-lldap [ -library ... ]
#include <ldap.h>
int ldap_version(LDAPVERSION *ver);
DESCRIPTION
A call to this function returns the version information for the LDAP
SDK for C. This is a deprecated function. Use ldap_get_option(3LDAP)
instead. The version information is returned in the LDAPVersion struc‐
ture pointed to by ver. If NULL is passed for ver, then only the SDK
version will be returned.
RETURN VALUES
The ldap_version() function returns the version number of the LDAP SDK
for C, multiplied by 100. For example, for version 1.0 of the LDAP SDK
for C, the function returns 100.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌────────────────────┬─────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├────────────────────┼─────────────────┤
│Interface Stability │ Obsolete │
└────────────────────┴─────────────────┘
SEE ALSOldap_get_option(3LDAP), attributes(5)
Oct 19, 2001 LDAP_VERSION(3LDAP)