table of contents
BSON_COMPARE(3) | Library Functions Manual | BSON_COMPARE(3) |
NAME¶
bson_compare() - The bson_compare() function shall compare two bson documents for equality.SYNOPSIS¶
int bson_compare (const bson_t *bson, const bson_t *other);
PARAMETERS¶
- bson
- A bson_t
- other
- A bson_t
DESCRIPTION¶
The bson_compare(3) function shall compare two bson documents for equality.This can be useful in conjunction with _qsort()_.
If equal, 0 is returned.
NOTE
This function uses _memcmp()_ internally, so the
semantics are the same.
RETURNS¶
less than zero, zero, or greater than zero in qsort(3) style.COLOPHON¶
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.2016‐10‐12 | libbson |