Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_value_new_value()

Allocates a new Slapi_Value structure and initializes it from another Slapi_Value structure.

Syntax

#include "slapi-plugin.h"
 Slapi_Value * 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 terminated.

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() .

Memory Concerns

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

See Also

slapi_value_dup()

slapi_value_free()