bson_vsnprintf (3) - Linux Manuals
bson_vsnprintf: Like bson_snprintf() but allows for variadic parameters.
Command to display bson_vsnprintf
manual in Linux: $ man 3 bson_vsnprintf
NAME
bson_vsnprintf() - Like bson_snprintf() but allows for variadic parameters.
SYNOPSIS
int
bson_vsnprintf (char *str,
size_t size,
const char *format,
va_list ap) BSON_GNUC_PRINTF (3, 0);
PARAMETERS
- str
-
A location for the resulting string.
- size
-
The size of str in bytes.
- format
-
A printf style format string.
- ap
-
A va_list of parameters for the format.
DESCRIPTION
Like bson_snprintf() but allows for variadic parameters.
RETURNS
The number of bytes written to
str
excluding the
\0
byte.
COLOPHON
This page is part of libbson.
Please report any bugs at
https://jira.mongodb.org/browse/CDRIVER.
Pages related to bson_vsnprintf
- bson_validate (3) - Validates a BSON document by walking through the document and inspecting the fields for valid content.
- bson_value_copy (3) - This function will copy the boxed content in src into dst. dst must be freed with bson_value_destroy() when no longer in use.
- bson_value_destroy (3) - Releases any resources associated with value.
- bson_value_t (3) - BSON Boxed Container Type
- bson_visitor_t (3) - The bson_visitor_t structure provides a series of callbacks that can be called while iterating a BSON document. This may simplify the conversion of a bson_t to a higher level language structure.
- bson_append_array (3) - The bson_append_array() function shall append child to bson using the specified key. The type of the field will be an array, but it is the responsibility of the caller to ensure that the keys of child are properly formatted with string keys such as "0", "1", "2" and so forth.
- bson_append_array_begin (3) - The bson_append_array_begin() function shall begin appending an array field to bson. This allows for incrementally building a sub-array. Doing so will generally yield better performance as you will serialize to a single buffer. When done building the sub-array, the caller MUST call bson_append_array_end().
- bson_append_array_end (3) - The bson_append_array_end() function shall complete the appending of an array field started with bson_append_array_begin(). child is invalid after calling this function.
- bson_append_binary (3) - The bson_append_binary() function shall append a new element to bson containing the binary data provided.