42.2. slapi_value_dup()

Duplicates a value.
Syntax

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

Parameters

This function takes the following parameter:

v
Pointer to the Slapi_Value structure you wish to duplicate.
Returns

This function returns a pointer to a newly allocated Slapi_Value.

Memory Concerns

The new Slapi_Value is allocated and needs to be freed by the caller, using slapi_value_free().