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

slapi_value_init_string()

Initializes a Slapi_Value structure from a string.

Syntax

#include "slapi-plugin.h"
 Slapi_Value * slapi_value_init_string(Slapi_Value *v,const 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 the Slapi_Value structure with the value contained in the string. The string is duplicated.

Memory Concerns

When finished using the Slapi_Value structure, free its internal structures by using slapi_value_done().