SYNOPSIS

#include <bson.h>

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

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.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.