int
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 BSON_SNPRINTF(3)
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, ...);
