DOKK / manpages / debian 12 / libbson-doc / bson_copy_to.3.en
BSON_COPY_TO(3) libbson BSON_COPY_TO(3)

bson_copy_to - bson_copy_to()

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


  • src: A bson_t.
  • dst: A bson_t.

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.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1