Str.vfprintf

An implementation of the standard fprintf() function which supports positional parameters, as specified in the Single Unix Specification.

glib/gprintf.h must be explicitly included in order to use this function.

struct Str
static
int
vfprintf
(
FILE* file
,
string format
,
void* args
)

Parameters

file FILE*

the stream to write to.

format string

a standard printf() format string, but notice [string precision pitfalls][string-precision]

args void*

the list of arguments to insert in the output.

Return Value

Type: int

the number of bytes printed.

Meta