mirror of
https://git.zaage.it/robert/balong-flash
synced 2024-11-18 09:28:23 +00:00
14 lines
382 B
C
14 lines
382 B
C
static int printf(const char* format, ...)
|
|
{
|
|
static char ostr[2048];
|
|
static wchar_t wstr[2048];
|
|
va_list args;
|
|
|
|
va_start(args, format);
|
|
vsprintf(ostr, format, args);
|
|
va_end(args);
|
|
MultiByteToWideChar(CP_UTF8, 0, ostr, -1, wstr, 2048);
|
|
WideCharToMultiByte(CP_OEMCP, 0, wstr, -1, ostr, 2048, NULL, NULL);
|
|
return printf_s("%s", ostr);
|
|
}
|