Provided by: libbson-doc_2.2.1-1_all 

SYNOPSIS
int
bson_snprintf (char *str, size_t size, const char *format, ...);
PARAMETERS
• str: The destination buffer.
• size: The size of str.
• format: A printf style format string.
DESCRIPTION
This is a portable wrapper around snprintf(). It also enforces a trailing \0 in the resulting string.
RETURNS
The number of bytes written to str.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 BSON_SNPRINTF(3)