bson_strdup() — libbson 1.9.2

- libbson 1.9.2 »
- API Reference »
- Character and String Routines

# bson_strdup()

## Synopsis

    char *
    bson_strdup (const char *str);

## Parameters

- `str`: A string.

## Description

Copies `str` into a new string. If `str` is NULL, then NULL is returned.

## Returns

A newly allocated string that should be freed with bson_free().

Created using Sphinx 1.6.5, based on Sphinx Readable Theme.