bson_strdup (3) - Linux Manuals

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

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.