Skip to content

Instantly share code, notes, and snippets.

@lordmulder
Created December 26, 2018 16:30
Show Gist options
  • Save lordmulder/3227e97e99bf5da0c08e9ebf9e79cf36 to your computer and use it in GitHub Desktop.
Save lordmulder/3227e97e99bf5da0c08e9ebf9e79cf36 to your computer and use it in GitHub Desktop.
#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