37.21. slapi_rdn_new_rdn()

Description

This function creates a new Slapi_RDN structure and initializes its RDN with the value of fromrdn.

Syntax

#include "slapi-plugin.h"
Slapi_RDN * slapi_rdn_new_rdn(const Slapi_RDN *fromrdn);

Parameters

This function takes the following parameter:

fromrdn
The RDN value to be set in the new Slapi_RDN structure.
Returns

This function returns a pointer to the new Slapi_RDN structure with an RDN set to the content of fromrdn.

Memory Concerns

The memory is allocated by the function itself.