1BSON_COPY(3) Libbson BSON_COPY(3)
23
4
NAME
6bson_copy - bson_copy()
7
SYNOPSIS
9bson_t *
10bson_copy (const bson_t *bson);
11
PARAMETERS
13ยท bson: A bson_t.
14
DESCRIPTION
16The bson_copy() function shall copy the contents of a bson document
17into a new bson_t.
1819
The resulting bson_t should be freed with bson_destroy().
20
RETURNS
22A newly allocated bson_t that should be freed with bson_destroy().
23
AUTHOR
25MongoDB, Inc
26
COPYRIGHT
282017-present, MongoDB, Inc
2930
31
32
33
1.15.2 Nov 06, 2019 BSON_COPY(3)