Scroll to navigation

BSON_STRDUP(3) Library Functions Manual BSON_STRDUP(3)

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.
2016‐10‐12 libbson