bson_string_free man page

bson_string_free() — Frees the bson_string_t structure and optionally the string itself.

Synopsis

char *
bson_string_free (bson_string_t *string,
                  bool           free_segment);

Parameters

string
A bson_string_t
free_segment
A bool indicating if str->str should be returned.

Description

Frees the bson_string_t structure and optionally the string itself.

Returns

str->str if free_segment is true, otherwise NULL.

Colophon

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

Referenced By

bson_string_t(3).

2016‐10‐28 libbson