HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Memory concerns When you are done working with the values, free them from memory by
calling the slapi_ch_array_free() function.
See also “slapi_entry_attr_get_charptr()”
24.15 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,
const char *type);
Parameters This function takes the following parameters:
Entry from which you want to get the integer value.
e
Attribute type from which you want to get the value.
type
Returns This function returns one of the following values:
The first value in the attribute converted to an integer.
0 if the entry does not contain the attribute.
24.16 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:
Entry from which you want to get the long value.
e
Attribute type from which you want to get the value.
type
Returns This function returns one of the following values:
The first value in the attribute converted to a long type.
0 if the entry does not contain the attribute specified.
24.17 slapi_entry_attr_get_uint()
Gets the first value of an attribute in an entry as an unsigned integer data type.
Syntax
#include "slapi-plugin.h"
unsigned int slapi_entry_attr_get_uint( const Slapi_Entry* e,
const char *type);
Parameters This function takes the following parameters:
Entry from which you want to get the value.
e
Attribute type from which you want to get the value.
type
Returns This function returns one of the following values:
The first value in the attribute converted to an unsigned integer.
0 if the entry does not contain the attribute specified.
24.15 slapi_entry_attr_get_int() 219