Sun Directory Server Enterprise Edition 7.0 Developer's Guide

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 Slapi_Value of which you wish to get as a string.

Returns

This function returns a string containing the value, or NULL if there is no value.

This function returns a pointer to the actual string value in Slapi_Value, not a copy of it.

Memory Concerns

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

See Also

slapi_value_set_string()