Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Author

       MongoDB, Inc

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);

See Also