Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_attr_init()

Initializes an empty attribute with a base type.

Syntax

#include "slapi-plugin.h"
 Slapi_Attr *slapi_attr_init(Slapi_Attr *a, const char *type);

Parameters

This function takes the following parameters:

a

The empty attribute to be initialized.

type

Attribute type to be initialized.

Returns

This function returns the newly initialized attribute, or an empty attribute if the type is not specified in the schema.

Description

Use this function to initialize an empty attribute with an attribute type.

Memory Concerns

Directory Server makes a copy of the type string.

See Also

slapi_attr_new()

slapi_attr_dup()

slapi_attr_free()