bson_strdup man page

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.

Info

2016‐09‐02 libbson