BSON_OID_COMPARE(3)

Okay bestie, this is BSON_OID_COMPARE(3) from libbson, and it's literally the vibe check for two OIDs. No cap. πŸ¦‹


✨ SYNOPSIS ✨

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

πŸŽ€ PARAMETERS πŸŽ€

  • oid1 β€” a bson_oid_t. That's it, that's the girl. πŸ’…
  • oid2 β€” another bson_oid_t. Equality icon behavior fr fr.

🌸 DESCRIPTION 🌸

So the bson_oid_compare() function shall return a qsort() style value of a lexicographical sort of oid1 and oid2. It's giving comparison-core, and honestly? Obsessed. ✨


πŸ’– RETURNS πŸ’–

Less than 0, exactly 0, or greater than 0 based on the comparison. The classic qsort() trio, slaying as always. πŸ‘‘


🫢 AUTHOR 🫢

MongoDB, Inc


2009-present, MongoDB, Inc.


This iconic lil page is from libbson 2.5.6, dated Oct 09, 2026. Byeee bestie, go compare some OIDs responsibly πŸ’œπŸŽ€

πŸ“¦ where this page comes from