BSON_SNPRINTF(3)

NAME
bson_snprintf()

SYNOPSIS
int
bson_snprintf (char       *str,
               size_t      size,
               const char *format,
               ...) BSON_GNUC_PRINTF (3, 4);

PARAMETERS

.B str
    The destination buffer.

.B size
    The size of str .

.B format
    A printf style format string.

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

RETURNS
The number of bytes written to str .

COLOPHON
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.