42.20. slapi_value_new_value()

Description

This function returns a Slapi_Value structure containing a value duplicated from the Slapi_Value structure passed as the parameter. This function is identical to slapi_value_dup().

Syntax

#include "slapi-plugin.h"
slapi_value_new_value(const Slapi_Value *v);

Parameters

This function takes the following parameter:

v
Pointer to the Slapi_Value structure used to initialize the newly allocated Slapi_Value.
Returns

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.

Memory Concerns

When you are no longer using the value, you should free it from memory by calling the slapi_value_free() function.