1BSON_STRING_FREE(3) libbson BSON_STRING_FREE(3)
23
4
SYNOPSIS
6char *
7bson_string_free (bson_string_t *string, bool free_segment);
8
PARAMETERS
10• string: A bson_string_t.
1112
• free_segment: A bool indicating whether string->str should be freed.
13
DESCRIPTION
15Frees the bson_string_t structure and optionally string->str.
16
RETURNS
18string->str if free_segment is false, otherwise NULL.
19
AUTHOR
21MongoDB, Inc
22
COPYRIGHT
242017-present, MongoDB, Inc
2526
27
28
29
1.25.1 Nov 08, 2023 BSON_STRING_FREE(3)