char *
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 BSON_STRDUP(3)
Description
Copies str into a new string. If str is NULL, then NULL is returned.
Parameters
• str: A string.
Returns
A newly allocated string that should be freed with bson_free().
Synopsis
char *
bson_strdup (const char *str);
