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

slapi_attr_value_cmp()

Compares two values for a given attribute to determine if they are equal.

Syntax

#include "slapi-plugin.h"
 int slapi_attr_value_cmp( Slapi_Attr *attr, struct berval *v1,
    struct berval *v2 );

Parameters

This function takes the following parameters:

attr

Attribute used to determine how these values are compared (for example, if the attribute contains case-insensitive strings, the strings are compared without regard to case).

v1

Pointer to the berval structure containing the first value that you want to compare.

v2

Pointer to the berval structure containing the second value that you want to compare.

Returns

This function returns one of the following values:

See Also

slapi_attr_add_value()

slapi_attr_first_value_const()

slapi_attr_next_value_const()

slapi_attr_get_numvalues()

slapi_attr_value_find()