Sets the value in a Slapi_Value structure.
#include "slapi-plugin.h" Slapi_Value * slapi_value_set(Slapi_Value *value, void *val, unsigned long len);
This function takes the following parameters:
Pointer to the Slapi_Value in which to set the value.
Pointer to the value.
Length of the value.
This function returns a pointer to the Slapi_Value with the value set.
This function sets the value in the Slapi_Value structure. The value is a duplicate of the data pointed to by val and of length len.
If the pointer to the Slapi_Value structure is NULL, then nothing is done and the function returns NULL. If the Slapi_Value structure already contains a value, it is freed from memory before the new one is set.
When you are no longer using the Slapi_Value structure, you should free it from memory by calling slapi_value_free() .