bson_snprintf man page

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

Synopsis

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

Parameters

str
The destination buffer.
size
The size of str
format
A printf style format string.

Description

This is a portable wrapper around snprintf(3) 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.

Info

2016‐09‐02 libbson