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

NAME

6       bson_compare - bson_compare()
7

SYNOPSIS

9          int
10          bson_compare (const bson_t *bson, const bson_t *other);
11

PARAMETERS

13bson: A bson_t.
14
15other: A bson_t.
16

DESCRIPTION

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

RETURNS

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

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.23.1                           Oct 20, 2022                  BSON_COMPARE(3)
Impressum