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