Functions for Managing Entries
See Also
slapi_entry_attr_get_charptr()
slapi_entry_attr_get_int()
Gets the first value of an attribute in an entry as an integer.
Syntax
#include "slapi-plugin.h"
int slapi_entry_attr_get_int(const Slapi_Entry* e, char *type);
Parameters
This function takes the following parameters:
e
type
Returns
This function returns one of the following values:
•
The first value in the attribute converted to an integer.
•
0
slapi_entry_attr_get_long()
Gets the first value of an attribute in an entry as a long data type.
Syntax
#include "slapi-plugin.h"
long slapi_entry_attr_get_long( const Slapi_Entry* e,
const char *type);
Parameters
This function takes the following parameters:
e
type
278
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Entry from which you want to get the integer value.
Attribute type from which you want to get the value.
if the entry does not contain the attribute.
Entry from which you want to get the long value.
Attribute type from which you want to get the value.
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.02 - PLUG-IN and is the answer not in the manual?
Questions and answers