bson_copy_to man page

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

Synopsis

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

Parameters

src
A bson_t
dst
A bson_t

Description

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

dst

MUST be an uninitialized bson_t to avoid leaking memory.

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Info

2016‐10‐28 libbson