1BSON_COMPARE(3)                     libbson                    BSON_COMPARE(3)
2
3
4

SYNOPSIS

6          int
7          bson_compare (const bson_t *bson, const bson_t *other);
8

PARAMETERS

10bson: A bson_t.
11
12other: A bson_t.
13

DESCRIPTION

15       The bson_compare() function shall compare two bson documents for equal‐
16       ity.
17
18       This can be useful in conjunction with _qsort()_.
19
20       If equal, 0 is returned.
21
22       TIP:
23          This function uses _memcmp()_ internally, so the semantics  are  the
24          same.
25

RETURNS

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

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.25.1                           Nov 08, 2023                  BSON_COMPARE(3)
Impressum