Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

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

Entry from which you want to get the long value.

type

Attribute type from which you want to get the value.

Returns

This function returns the first value in the attribute converted to a long type. The function returns 0 if the entry does not contain the attribute specified.