Function

GLibprintf_string_upper_bound

Declaration

gsize
g_printf_string_upper_bound (
  const gchar* format,
  va_list args
)

Description

Calculates the maximum space needed to store the output of the sprintf() function.

Parameters

format const gchar*
 

The format string. See the printf() documentation.

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

The parameters to be inserted into the format string.

Return value

Returns: gsize
 

The maximum space needed to store the formatted string.