Create winapi_string_fillbuffer.c

This commit is contained in:
Jan Bodnar 2016-04-07 15:42:05 +02:00
parent 67fbdb2b24
commit 2a0bf7c11b

View File

@ -0,0 +1,18 @@
#include <windows.h>
#include <wchar.h>
#pragma comment(lib, "User32.lib")
int wmain(void) {
SYSTEMTIME st = {0};
wchar_t buf[128] = {0};
GetLocalTime(&st);
wsprintfW(buf, L"Today is %lu.%lu.%lu\n", st.wDay,
st.wMonth, st.wYear);
wprintf(buf);
return 0;
}