1BSON_SNPRINTF(3)                    libbson                   BSON_SNPRINTF(3)
2
3
4

NAME

6       bson_snprintf - bson_snprintf()
7

SYNOPSIS

9          int
10          bson_snprintf (char *str, size_t size, const char *format, ...)
11             BSON_GNUC_PRINTF (3, 4);
12

PARAMETERS

14       · str: The destination buffer.
15
16       · size: The size of str.
17
18       · format: A printf style format string.
19

DESCRIPTION

21       This is a portable wrapper around snprintf(). It also enforces a trail‐
22       ing \0 in the resulting string.
23

RETURNS

25       The number of bytes written to str.
26

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.17.4                           Feb 04, 2021                 BSON_SNPRINTF(3)
Impressum