gprintf.h File Reference

g_printf ( gchar const *, ... )

G_BEGIN_DECLS IMPORT_C gintg_printf(gchar const *format,
...
)

g_fprintf ( FILE *, gchar const *, ... )

G_BEGIN_DECLS IMPORT_C gint IMPORT_C gintg_fprintf(FILE *file,
gchar const *format,
...
)

g_sprintf ( gchar *, gchar const *, ... )

G_BEGIN_DECLS IMPORT_C gint IMPORT_C gint IMPORT_C gintg_sprintf(gchar *string,
gchar const *format,
...
)

g_vprintf ( gchar const *, va_list )

G_BEGIN_DECLS IMPORT_C gint IMPORT_C gint IMPORT_C gint IMPORT_C gintg_vprintf(gchar const *format,
va_listargs
)

g_vprintf: : a standard printf() format string, but notice <link linkend="string-precision">string precision pitfalls</link>. : the list of arguments to insert in the output.

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

Returns: the number of bytes printed.

Since: 2.2

g_vfprintf ( FILE *, gchar const *, va_list )

IMPORT_C gintg_vfprintf(FILE *file,
gchar const *format,
va_listargs
)

g_vsprintf ( gchar *, gchar const *, va_list )

IMPORT_C gintg_vsprintf(gchar *string,
gchar const *format,
va_listargs
)

g_vsprintf: : the buffer to hold the output. : a standard printf() format string, but notice <link linkend="string-precision">string precision pitfalls</link>. : the list of arguments to insert in the output.

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

Returns: the number of bytes printed.

Since: 2.2

g_vasprintf ( gchar **, gchar const *, va_list )

IMPORT_C gintg_vasprintf(gchar **string,
gchar const *format,
va_listargs
)

g_vasprintf: : the return location for the newly-allocated string. : a standard printf() format string, but notice <link linkend="string-precision">string precision pitfalls</link>. : the list of arguments to insert in the output.

An implementation of the GNU vasprintf() function which supports positional parameters, as specified in the Single Unix Specification. This function is similar to g_vsprintf(), except that it allocates a string to hold the output, instead of putting the output in a buffer you allocate in advance.

Returns: the number of bytes printed.

Since: 2.4