OutputStream.vprintf

This is a utility function around g_output_stream_write_all(). It uses g_strdup_vprintf() to turn @format and @args into a string that is then written to @stream.

See the documentation of g_output_stream_write_all() about the behavior of the actual write operation.

Note that partial writes cannot be properly checked with this function due to the variable length of the written string, if you need precise control over partial write failures, you need to create you own printf()-like wrapper around g_output_stream_write() or g_output_stream_write_all().

class OutputStream
bool
vprintf

Parameters

bytesWritten size_t

location to store the number of bytes that was written to the stream

cancellable Cancellable

optional #GCancellable object, %NULL to ignore.

error ErrorG

location to store the error occurring, or %NULL to ignore

format string

the format string. See the printf() documentation

args void*

the parameters to insert into the format string

Return Value

Type: bool

%TRUE on success, %FALSE if there was an error

Meta

Since

2.40