Provided by: libbson-doc_1.3.1-1_all bug

NAME

       bson_strdup() - Copies str into a new string. If str is NULL, then NULL is returned.

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

COLOPHON

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

libbson                                            2016‐01‐18                                     BSON_STRDUP(3)