gbuffer_vprintf()
#
gbuffer_vprintf()
appends a formatted string to a gbuffer_t *
using a va_list
argument list.
Prototype
int gbuffer_vprintf(
gbuffer_t *gbuf,
const char *format,
va_list ap
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the |
|
|
Format string specifying how subsequent arguments are converted for output. |
|
|
Variable argument list containing the values to format and append. |
Return Value
Returns the number of characters written, or a negative value if an error occurs.
Notes
If the buffer is too small, gbuffer_vprintf()
attempts to reallocate it before writing.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples