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

slapi_value_new_string_passin()

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

Syntax

#include "slapi-plugin.h"
 Slapi_Value * slapi_value_new_string_passin ( char *s );

Parameters

This function takes the following parameter:

s

NULL terminated string used to initialize the newly allocated Slapi_Value structure.

Returns

This function returns a pointer to a newly allocated Slapi_Value structure. If space cannot be allocated (for example, if no virtual memory exists), the slapd program terminates.

Description

This function returns a Slapi_Value structure containing the string passed as the parameter. The string passed in must not be freed from memory.

Memory Concerns

The value should be freed by the caller, using slapi_value_free() .

See Also

slapi_value_dup()

slapi_value_free()

slapi_value_new()