Man page - bson_snprintf(3)

Packages contas this manual

Manual

BSON_SNPRINTF(3) libbson BSON_SNPRINTF(3)

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


  • 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

2009-present, MongoDB, Inc.

December 18, 2025 1.30.4