| BSON_REINIT(3) | libbson | BSON_REINIT(3) |
void bson_reinit (bson_t *b);
Reinitializes a bson_t.
If the bson_t structure contains a malloc()'d buffer, it may be reused. To be certain that any buffer is freed, always call bson_destroy() on any bson_t structure, whether initialized or reinitialized, after its final use.
MongoDB, Inc
2009-present, MongoDB, Inc.
| May 7, 2025 | 1.30.4 |