42.26. slapi_value_set_string_passin()
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.
#include "slapi-plugin.h" int slapi_value_set_string_passin ( Slapi_Value *value, char *strVal);
This function takes the following parameters:
|
value
| Pointer to the Slapi_Value structure into which the value will be set. |
|
strVal
| The string containing the value to set. |
This function returns one of the following values:
- 0 if the value is set.
- -1 if the pointer to the Slapi_Value structure is
NULL.
Use slapi_value_free() when you are finished working with the structure to free it from memory.

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.