bson_compare (3) - Linux Manuals
bson_compare: The bson_compare() function shall compare two bson documents for equality.
Command to display bson_compare
manual in Linux: $ man 3 bson_compare
NAME
bson_compare() - The bson_compare() function shall compare two bson documents for equality.
SYNOPSIS
int
bson_compare (const bson_t *bson,
const bson_t *other);
PARAMETERS
- bson
-
A
bson_t
\&.
- other
-
A
bson_t
\&.
DESCRIPTION
The
bson_compare(3)
function shall compare two bson documents for equality.
This can be useful in conjunction with _qsort()_.
If equal, 0 is returned.
NOTE
-
This function uses _memcmp()_ internally, so the semantics are the same.
RETURNS
less than zero, zero, or greater than zero in
qsort(3)
style.
COLOPHON
This page is part of libbson.
Please report any bugs at
https://jira.mongodb.org/browse/CDRIVER.
Pages related to bson_compare
- bson_concat (3) - The bson_concat() function shall append the contents of src to dst.
- bson_context_destroy (3) - The bson_context_destroy() function shall release all resources associated with context.
- bson_context_get_default (3) - None
- bson_context_new (3) - Creates a new bson_context_t. This is rarely needed as bson_context_get_default() serves most use-cases.
- bson_context_t (3) - BSON OID Generation Context
- bson_copy (3) - The bson_copy() function shall copy the contents of a bson document into a new bson_t.
- bson_copy_to (3) - The bson_copy_to() function shall initialize dst with a copy of the contents of src.
- bson_copy_to_excluding (3) - The bson_copy_to_excluding() function shall copy all fields from src to dst except those speified by the variadic, NULL terminated list of keys starting from first_exclude.
- bson_count_keys (3) - The bson_count_keys() function shall count the number of elements within bson.
- bson_check_version (3) - Check at runtime if this release of libbson meets a required version.