Function
GLibprintf_string_upper_bound
since: 2.0
Description
Calculates the maximum space needed to store the output
of the sprintf() function.
If format or args are invalid, 0 is returned. This could happen if, for
example, format contains an %lc or %ls placeholder and args contains a
wide character which cannot be represented in multibyte encoding. 0
can also be returned legitimately if, for example, format is %s and args
is an empty string. The caller is responsible for differentiating these two
return cases if necessary. It is recommended to not use %lc or %ls
placeholders in any case, as their behaviour is locale-dependent.
Available since: 2.0
This function is not directly available to language bindings.