24.22. 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; if so, this function is roughly equivalent to slapi_entry_attr_delete().