DOKK / manpages / debian 10 / libbson-doc / bson_string_new.3.en
BSON_STRING_NEW(3) Libbson BSON_STRING_NEW(3)

bson_string_new - bson_string_new()

bson_string_t *
bson_string_new (const char *str);


str: A string to be copied or NULL.

Creates a new string builder, which uses power-of-two growth of buffers. Use the various bson_string_append*() functions to append to the string.

A newly allocated bson_string_t that should be freed with bson_string_free() when no longer in use.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0