19.3. slapi_attr_dup()

Description

Use this function to make a copy of an attribute.

Syntax

#include "slapi-plugin.h"
Slapi_Attr *slapi_attr_dup(const Slapi_Attr *attr);

Parameters

This function takes the following parameters:

attr The attribute to be duplicated.
Returns

This function returns the newly created copy of the attribute.

Memory Concerns

You must free the returned attribute using slapi_attr_free().