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

slapi_entry_attr_hasvalue()

This function is deprecated. It determines if an attribute in an entry contains a specified value by comparing the specified value as a string with the existing values, and does not compare using the equality matching rule.

Syntax

#include "slapi-plugin.h"
 int slapi_entry_attr_hasvalue(Slapi_Entry *e, const char *type,
    const char *value);

Parameters

This function takes the following parameters:

e

Entry that you want to check.

type

Attribute type that you want to test for the value specified.

value

Value that you want to find in the attribute.

Returns

Returns one of the following values:

Memory Concerns

value must not be NULL.