24.18. slapi_entry_attr_get_ulong()

Gets the first value of an attribute in an entry as a unsigned long data type.
Syntax

#include "slapi-plugin.h"
unsigned long slapi_entry_attr_get_ulong( const Slapi_Entry* e, const char *type);

Parameters

This function takes the following parameters:

e
Entry from which you want to get the value.
type
Attribute type from which you want to get the value.
Returns

This function returns one of the following values:

  • The first value in the attribute converted to an unsigned long.
  • 0 if the entry does not contain the attribute specified.