DOKK / manpages / debian 13 / libbson-doc / bson_vsnprintf.3.en
BSON_VSNPRINTF(3) libbson BSON_VSNPRINTF(3)

int
bson_vsnprintf (char *str, size_t size, const char *format, va_list ap);


  • str: A location for the resulting string.
  • size: The size of str in bytes.
  • format: A printf style format string.
  • ap: A va_list of parameters for the format.

Like bson_snprintf() but allows for variadic parameters.

The number of bytes written to str excluding the \0 byte.

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4