19.4. slapi_attr_first_value()
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.
#include "slapi-plugin.h" int slapi_attr_first_value( Slapi_Attr *a, Slapi_Value **v );
This function takes the following parameters:
| a | Attribute containing the desired value. |
| v | Holds the first value of the attribute. |
This function returns one of the following values:
- 0, which is the index of the first value.
- -1 if the attribute (
a) is NULL or if the value (v) parameter has no value.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.