1BSON_SNPRINTF(3) libbson BSON_SNPRINTF(3)
2
3
4
6 bson_snprintf - bson_snprintf()
7
9 int
10 bson_snprintf (char *str, size_t size, const char *format, ...)
11 BSON_GNUC_PRINTF (3, 4);
12
14 • str: The destination buffer.
15
16 • size: The size of str.
17
18 • format: A printf style format string.
19
21 This is a portable wrapper around snprintf(). It also enforces a trail‐
22 ing \0 in the resulting string.
23
25 The number of bytes written to str.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.23.1 Oct 20, 2022 BSON_SNPRINTF(3)