-
-
Save lordmulder/3227e97e99bf5da0c08e9ebf9e79cf36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <io.h> | |
#include <fcntl.h> | |
int wmain(int argc, wchar_t *argv[]) | |
{ | |
_setmode(_fileno(stderr), _O_U8TEXT); | |
fwprintf_s(stderr, L"Args [%S]\n\n", __DATE__); | |
for (int i = 0; i < argc; ++i) | |
{ | |
fwprintf_s(stderr, L"argv[%d] = \"%s\"\n", i, argv[i]); | |
} | |
fputws(L"\n", stderr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment