String Format Function
int vasprintf(char **ptr, const char *template, va_list ap);
Internationalization (I18n) Function Overview
The vasprintf function is similar to asprintf , except that instead of taking a variable number of arguments directly, it takes an argument list pointer ap of type va_list .
I18n Issues
Prior to calling one of these functions, ensure that the current locale is set properly by calling setlocale, as string formatting is dependent on the LC_NUMERIC locale category.
See String Formatting in C and C++ for a discussion on locale-sensitive formatting in internationalized applications.
There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the vasprintf function can be used.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
String Format Functions

|