Sets the value of a Slapi_Value structure from a string.
#include "slapi-plugin.h" int slapi_value_set_string_passin(Slapi_Value *value, char *strVal);
This function takes the following parameters:
Pointer to the Slapi_Value structure in which to set the value.
The string containing the value to set.
This function returns 0 if the value is set, or -1 if the pointer to the Slapi_Value structure is NULL.
This function sets the value of Slapi_Value structure with the string strVal. If the Slapi_Value structure already contains a value, it is freed from memory before the new one is set. The string strVal must not be freed from memory.
Use slapi_value_free() when you are finished working with the structure to free it from memory.