43.5. slapi_valueset_find()
This function finds the value in a valueset using the syntax of an attribute. Use this to check for duplicate values in an attribute.
#include "slapi-plugin.h" Slapi_Value *slapi_valueset_find(const Slapi_Attr *a, const Slapi_ValueSet *vs, const Slapi_Value *v);
This function takes the following parameters:
|
a
| Pointer to the attribute. This is used to determine the syntax of the values and how to match them. |
|
vs
| Pointer to the Slapi_ValueSet structure from which you wish to get the value. |
|
v
| Address of the pointer to the Slapi_Value structure for the returned value. |
This function returns one of the following values:
- A pointer to the value in the valueset if the value was found.
NULLif the value was not found.

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.