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

slapi_attr_dup()

Duplicates an attribute.

Syntax

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

Parameters

This function takes the following parameter:

attr

The attribute to be duplicated.

Returns

This function returns the newly created copy of the attribute.

Description

Use this function to make a copy of an attribute.

Memory Concerns

You must free the returned attribute using slapi_attr_free() .

See Also

slapi_attr_new()

slapi_attr_init()

slapi_attr_free()