42.9. slapi_value_get_string()

Returns the value as a string.
Syntax

#include "slapi-plugin.h"
const char*slapi_value_get_string(const Slapi_Value *value);

Parameters

This function takes the following parameter:

value
Pointer to the value you wish to get as a string.
Returns

This function returns one of the following values:

  • A string containing the value. The function returns a pointer to the actual string value in Slapi_Value, not a copy of it.
  • NULL if there is no value.
Memory Concerns

You should not free the string unless to plan to replace it by calling slapi_value_set_string().