bson_string_free(3)

bson_string_free()

Section 3 libbson-doc bookworm source

Description

BSON_STRING_FREE

NAME

bson_string_free - bson_string_free()

SYNOPSIS

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

PARAMETERS

string: A bson_string_t.

free_segment: A bool indicating whether string->str should be freed.

DESCRIPTION

Frees the bson_string_t structure and optionally string->str.

RETURNS

string->str if free_segment is false, otherwise NULL.

AUTHOR

MongoDB, Inc

COPYRIGHT

2017-present, MongoDB, Inc