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