BSON_COMPARE(3)
π BSON_COMPARE π
okay bestie, this is the libbson manual page for bson_compare() β the equality-checking little icon with main character energy. it compares two bson documents for equality, no cap.
β¨ SYNOPSIS β¨
int
bson_compare (const bson_t *bson, const bson_t *other);
π PARAMETERS π
bsonβ abson_t. literally one of the documents, bestie.otherβ abson_t. the other one. periodt.
πΈ DESCRIPTION πΈ
The bson_compare() function shall compare two bson documents for equality.
This can be useful in conjunction with qsort(). like, it's giving sorting-assist energy.
If equal, 0 is returned.
TIP: This function uses memcmp() internally, so the semantics are the same. iykyk π
β RETURNS β
less than zero, zero, or greater than zero in qsort() style.
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
cute sign-off time: this page is from libbson 2.5.6, dated Oct 09, 2026. slay and bye bestie π«Άβ¨
π¦ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms