Logo Search packages:      
Sourcecode: ldb version File versions  Download package

int ldb_val_equal_exact ( const struct ldb_val v1,
const struct ldb_val v2 

Compare two ldb_val values

v1 first ldb_val structure to be tested
v2 second ldb_val structure to be tested
1 for a match, 0 if there is any difference

Definition at line 64 of file ldb_msg.c.

References ldb_val::data, and ldb_val::length.

      if (v1->length != v2->length) return 0;

      if (v1->length == 0) return 1;

      if (memcmp(v1->data, v2->data, v1->length) == 0) {
            return 1;

      return 0;

Generated by  Doxygen 1.6.0   Back to index