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

slapi_attr_syntax_normalize()

Searches for an attribute type in the syntaxes, and returns a copy of the normalized attribute types.

Syntax

#include "slapi-plugin.h"
 char * slapi_attr_syntax_normalize( const char *s );

Parameters

This function takes the following parameter:

s

Attribute type for which you wish to search.

Returns

This function returns the copy of the desired normalized attribute, or a normalized copy of what was passed in.

Description

Use this function to search the syntaxes for an attribute type and return its normalized form. If the attribute type is not defined in the schema, this function returns a copy of the type folded to lower case.

Memory Concerns

You should free the returned string using slapi_ch_free() .

See Also

slapi_ch_free()