SYNOPSIS

#include <bson.h>

bson_t *
bson_copy (const bson_t *bson);

DESCRIPTION

The bson_copy() function shall copy the contents of a bson document into a new bson_t.

The resulting bson_t should be freed with bson_destroy().

RETURN VALUE

A newly allocated bson_t.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB, Inc.