42.19. slapi_value_new_string_passin()

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.

Syntax

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

Parameters

This function takes the following parameter:

s
A 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.

Memory Concerns

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