bson_string_new() — libbson 1.6.3

- libbson 1.6.3 »
- API Reference »
- bson_string_t

# bson_string_new()

## Synopsis

    bson_string_t *
    bson_string_new (const char *str);

## Parameters

- `str`: A string to be copied or NULL.

## Description

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.

## Returns

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

Created using Sphinx 1.5.3, based on Sphinx Readable Theme.