Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 18 Functions

ldap_get_lang_values_len()

The ldap_get_lang_values_len() function returns a NULL-terminated array of pointers to berval structures, each containing the length and pointer to a binary value of an attribute for a given entry. Use the ldap_get_lang_values() routine instead of this routine if the attribute values are string values.

For more information, see "Getting the Values of an Attribute" on page 131.

Syntax

#include <ldap.h> 
struct berval ** ldap_get_lang_values_len( LDAP *ld,
   LDAPMessage *entry, const char *target, char **type );

Parameters

This function has the following parameters:

ld

Connection handle, which is a pointer to an LDAP structure containing information about the connection to the LDAP server.

entry

Result returned by the ldap_result() or ldap_search_s() function.

target

Attribute returned by ldap_first_attribute() or ldap_next_attribute(), or the attribute as a literal string, such as "jpegPhoto" or "audio".

type

Pointer to a buffer that returns the attribute type retrieved by this function.

Returns

One of the following values:

See Also

ldap_first_entry(), ldap_next_entry(), ldap_first_attribute(), ldap_next_attribute(), ldap_get_lang_values(), ldap_get_values_len().


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:06:23