Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 276

Table of Contents

Advertisement

Functions for Managing Entries
Returns
This function returns one of the following values:
0
-1
Memory Concerns
Do not free the returned
is usually wise to make a copy of the returned
avoid dangling pointers if the entry is freed while the pointer to
used.
See Also
slapi_attr_dup()
slapi_entry_attr_get_charptr()
Gets the first value of an attribute, of an entry, as a string.
Syntax
#include "slapi-plugin.h"
char *slapi_entry_attr_get_charptr(const Slapi_Entry* e,
char *type);
Parameters
This function takes the following parameters:
e
type
Returns
This function returns one of the following values:
A copy of the first value in the attribute.
NULL
Memory Concerns
When you are done working with this value, free it from memory by calling the
slapi_ch_free()
276
Netscape Directory Server Plug-In Programmer's Guide • May 2002
if the entry contains the specified attribute.
if the entry does not contain the specified attribute.
attr
Entry from which you want to get the string value.
Attribute type from which you want to get the value.
if the entry does not contain the attribute.
function.
. It is a pointer to the internal entry data structure. It
attr
, using
slapi_attr_dup()
is still being
attr
, to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents