Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 271

Table of Contents

Advertisement

slapi_entry_add_string()
Adds a string value to an attribute in an entry.
Syntax
#include "slapi-plugin.h"
int slapi_entry_add_string (Slapi_Entry *e, const char *type,
const char *value);
Parameters
This function takes the following parameters:
e
type
value
Returns
This function returns
Description
This function adds a string value to the existing attribute values in an entry. If the
specified attribute does not exist in the entry, the attribute is created with the string
value specified. (The function doesn't check for duplicate values, that is, it does not
check if the string value being added is already there.)
Memory Concerns
This routine makes a copy of the parameter
slapi_entry_add_value()
Adds a specified
Syntax
#include "slapi-plugin.h"
int slapi_entry_add_value (Slapi_Entry *e, const char *type,
const Slapi_Value *value);
Entry to which you want to add a string value.
Attribute to which you want to add a string value.
String value you want to add.
when successful; any other value returned signals failure.
0
data value to an attribute in an entry.
Slapi_Value
Functions for Managing Entries
.
can be
value
value
Chapter 14
Function Reference
.
NULL
271

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents