Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_attr_first_value_const()

Gets the first value of an attribute.

Syntax

#include "slapi-plugin.h"
int slapi_attr_first_value_const( const Slapi_Attr *a, const Slapi_Value **v );

Parameters

This function takes the following parameters:

a

Attribute containing the desired value.

v

Holds the first value of the attribute.

Returns

This function returns one of the following values:

Description

Use this function to get the first value of an attribute. This is part of a set of functions to enumerate over an Slapi_Attr structure.

Memory Concerns

Do not free the value held in v.

See Also

slapi_attr_next_value_const()

slapi_attr_get_numvalues()