42.15. slapi_value_init_string_passin()

Description

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

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 initialize. The pointer must not be NULL.
s
A null-terminated string used to initialize the value.
Returns

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

Memory Concerns

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