Declaration [src]

g_printf (
  const gchar* format,

Description [src]

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

As with the standard printf(), this does not automatically append a trailing new-line character to the message, so typically format should end with its own new-line character.

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

Available since:2.2


format const gchar*

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

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

The arguments to insert in the output.

Return value

Returns: gint

The number of bytes printed.