Provided by: libbson-doc_2.2.0-1_all 

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().
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.0 Nov 26, 2025 BSON_STRDUP(3)