bson_oid_compare - Man Page

Synopsis

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

Parameters

Description

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

Returns

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

Author

MongoDB, Inc

Info

Sep 04, 2026 2.5.2 libbson