BSON_STRDUP(3)

NAME
bson_strdup()

SYNOPSIS
char *
bson_strdup (const char *str);

PARAMETERS

.B 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().

COLOPHON
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.