Allocates a new Slapi_Value structure and initializes it from a string.
#include "slapi-plugin.h" Slapi_Value * slapi_value_new_string(const char *s);
This function takes the following parameter:
NULL terminated string used to initialize the newly allocated Slapi_Value.
This function returns a pointer to the newly allocated Slapi_Value. If space cannot be allocated (for example, if no more virtual memory exists), the slapd program will terminate.
This function returns a Slapi_Value structure containing a value duplicated from the string passed as the parameter.
When you are no longer using the value, you should free it from memory by calling slapi_value_free().