bson_t *
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 BSON_NEW(3)
Description
The bson_new() function shall create a new bson_t structure on the heap. It should be freed with
bson_destroy() when it is no longer in use.
Returns
A newly allocated bson_t that should be freed with bson_destroy().
Synopsis
bson_t *
bson_new (void);
