1BSON_COPY_TO(3) libbson BSON_COPY_TO(3)
23
4
NAME
6bson_copy_to - bson_copy_to()
7
SYNOPSIS
9void
10bson_copy_to (const bson_t *src, bson_t *dst);
11
PARAMETERS
13· src: A bson_t.
1415
· dst: A bson_t.
16
DESCRIPTION
18The bson_copy_to() function shall initialize dst with a copy of the
19contents of src.
2021
dst MUST be an uninitialized bson_t to avoid leaking memory.
22
AUTHOR
24MongoDB, Inc
25
COPYRIGHT
272017-present, MongoDB, Inc
2829
30
31
32
1.17.4 Feb 04, 2021 BSON_COPY_TO(3)