print


Description:

[ PrintfFormat ]
public void print (string format, ...)

Outputs a formatted message via the print handler.

The default print handler outputs the encoded message to `stdout`, without appending a trailing new-line character. Typically, format should end with its own new-line character.

This function should not be used from within libraries for debugging messages, since it may be redirected by applications to special purpose message windows or even files. Instead, libraries should use [func@GLib.log], [func@GLib.log_structured], or the convenience macros [ func@GLib.message], [func@GLib.warning] and [func@GLib.error].

Parameters:

format

the message format. See the `printf()` documentation

...

the parameters to insert into the format string


Namespace: GLib
Package: glib-2.0