bson_compare(3)

bson_compare3

Usage

int
bson_compare (const bson_t *bson, const bson_t *other);

Parameters

•

bson: A bson_t.

•

other: A bson_t.

Overview

The bson_compare() function shall compare two bson documents for equality.

This can be useful in conjunction with _qsort()_.

If equal, 0 is returned.

TIP:

This function uses _memcmp()_ internally, so the semantics are the same.

Returns

less than zero, zero, or greater than zero in qsort() style.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libbson-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.