Provided by: libbson-doc_2.2.1-1_all bug

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() <> 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

Copyright

       2009-present, MongoDB, Inc.

2.2.1                                             Dec 11, 2025                                   BSON_COPY_TO(3)