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

slapi_entry_attr_set_charptr()

Replaces the value or values of an attribute in an entry with a specified string value.

Syntax

#include "slapi-plugin.h"
 void slapi_entry_attr_set_charptr(Slapi_Entry* e, const char *type,
    const char *value);

Parameters

This function takes the following parameters:

e

Entry in which you want to set the value.

type

Attribute type in which you want to set the value.

value

String value that you want to assign to the attribute.

Memory Concerns

This function makes a copy of the parameter values. values can be NULL, and if so, this function is roughly equivalent to slapi_entry_attr_delete().

See Also

slapi_entry_attr_delete()