Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Author

       MongoDB, Inc

Description

       This is a portable wrapper around snprintf(). It also enforces a trailing \0 in the resulting string.

Parameters

       • str: The destination buffer.

       • size: The size of str.

       • format: A printf style format string.

Returns

       The number of bytes written to str.

Synopsis

          int
          bson_snprintf (char *str, size_t size, const char *format, ...);

See Also