DOKK / manpages / debian 11 / libbson-doc / bson_snprintf.3.en
BSON_SNPRINTF(3) libbson BSON_SNPRINTF(3)

bson_snprintf - bson_snprintf()

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

BSON_GNUC_PRINTF (3, 4);


  • str: The destination buffer.
  • size: The size of str.
  • format: A printf style format string.

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

The number of bytes written to str.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6