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

slapi_attr_add_value()

Adds a value to an attribute.

Syntax

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

Parameters

This function takes the following parameters:

a

The attribute that will contain the values.

v

Values to be added to the attribute.

Returns

This function always returns 0.

Memory Concerns

Directory Server makes a copy of the Slapi_Value to be added to the attribute.

See Also

slapi_attr_first_value_const()

slapi_attr_next_value_const()

slapi_attr_get_numvalues()

slapi_attr_value_cmp()

slapi_attr_value_find()