DOKK / manpages / debian 10 / libbson-doc / bson_oid_compare.3.en
BSON_OID_COMPARE(3) Libbson BSON_OID_COMPARE(3)

bson_oid_compare - bson_oid_compare()

int
bson_oid_compare (const bson_oid_t *oid1, const bson_oid_t *oid2);


  • oid1: A bson_oid_t.
  • oid2: A bson_oid_t.

The bson_oid_compare() function shall return a qsort() style value of a lexicographical sort of oid1 and oid2.

less than 0, 0, or greater than 0 based on the comparison.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0