bson_new man page

bson_new() — 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.

Synopsis

bson_t *
bson_new (void);

Description

The bson_new(3) function shall create a new bson_t structure on the heap. It should be freed with bson_destroy(3) when it is no longer in use.

Returns

A newly allocated bson_t that should be freed with bson_destroy(3)

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Info

2016‐10‐28 libbson