24.5. slapi_entry_add_value()
This function adds a Slapi_Value data value to the existing attribute values in an entry. If the specified attribute does not exist in the entry, the attribute is created with the Slapi_Value specified. The function doesn't check for duplicate values, meaning it does not check if the value being added is already there.
#include "slapi-plugin.h" int slapi_entry_add_value (Slapi_Entry *e, const char *type, const Slapi_Value *value);
This function takes the following parameters:
|
e
| Entry to which you want to add a value. |
|
type
| Attribute to which you want to add a value. |
|
value
| The Slapi_value data value you want to add to the entry. |
This function returns 0 when successful; any other value returned signals failure.
This routine makes a copy of the parameter value. value can be NULL.

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.