Sun Directory Server Enterprise Edition 7.0 Developer's Guide

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:

e

Entry from which you want to get the integer value.

type

Attribute type from which you want to get the value.

Returns

Returns the first value in the attribute converted to an integer or 0 if the entry does not contain the attribute.