You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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);
|
|
}
|