Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_value_init_string_passin()

Initializes a Slapi_Value structure with value contained in the string.

Syntax

#include "slapi-plugin.h"
 Slapi_Value * slapi_value_init_string_passin (Slapi_value *v,
    char *s);

Parameters

This function takes the following parameters:

v

Pointer to the value to be initialized. The pointer must not be NULL.

s

NULL terminated string used to initialize the value.

Returns

This function returns a pointer to the initialized Slapi_Value structure (itself).

Description

This function initializes a Slapi_Value structure with the value contained in the string. The string is not duplicated and must be freed.

Memory Concerns

The string will be freed when the Slapi_Value structure is freed from memory by calling slapi_value_free().

See Also

slapi_value_free()

slapi_value_new_string_passin()

slapi_value_set_string_passin()