logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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