Method

GLibStringprintf

Declaration

void
g_string_printf (
  GString* string,
  const gchar* format,
  ...
)

Description

Writes a formatted string into a GString. This is similar to the standard sprintf() function, except that the GString buffer automatically expands to contain the results. The previous contents of the GString are destroyed.

Parameters

format const gchar*
 

The string format. See the printf() documentation.

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

The parameters to insert into the format string.