Create winapi_string_lenght.c

This commit is contained in:
Jan Bodnar 2016-04-07 15:40:25 +02:00
parent 0625b84cd5
commit 14dc3fd2f1

View File

@ -0,0 +1,13 @@
#include <windows.h>
#include <wchar.h>
int wmain(void) {
char *name = "Jane";
wchar_t *town = L"Bratislava";
wprintf(L"The length of the name string is %d\n", lstrlenA(name));
wprintf(L"The town string length is %d\n", lstrlenW(town));
return 0;
}