gbuffer_vprintf()

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

gbuf

gbuffer_t *

Pointer to the gbuffer_t * where the formatted string will be appended.

format

const char *

Format string specifying how subsequent arguments are converted for output.

ap

va_list

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