Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Author

       MongoDB, Inc

Description

       The bson_compare() function shall compare two bson documents for equality.

       This can be useful in conjunction with _qsort()_.

       If equal, 0 is returned.

       TIP:
          This function uses _memcmp()_ internally, so the semantics are the same.

Parameters

       • bson: A bson_t.

       • other: A bson_t.

Returns

       less than zero, zero, or greater than zero in qsort() style.

Synopsis

          int
          bson_compare (const bson_t *bson, const bson_t *other);

See Also