BSON_REINIT(3)

NAME
bson_reinit()

SYNOPSIS
void
bson_reinit (bson_t *b);

PARAMETERS

b   A bson_t .

DESCRIPTION
The bson_reinit(3) function shall be equivalent to calling bson_destroy(3) and bson_init(3) . However, if the bson_t structure contains a malloc()'d buffer, it may be reused.

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