bson_copy_to man page

bson_copy_to ā€” bson_copy_to()

Synopsis

void
bson_copy_to (const bson_t *src, bson_t *dst);

Parameters

Description

The bson_copy_to() function shall initialize dst with a copy of the contents of src.

dst MUST be an uninitialized bson_t to avoid leaking memory.

Author

MongoDB, Inc

Info

Nov 20, 2017 1.8.2 Libbson