SysTutorials

Linux Manual Pages › Section 3

bson_snprintf(3)

NAME

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) \&. It also enforces a trailing