mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2026-08-07 18:34:45 -04:00
Create winapi_string_lenght.c
This commit is contained in:
parent
0625b84cd5
commit
14dc3fd2f1
13
strings/winapi_string_lenght.c
Normal file
13
strings/winapi_string_lenght.c
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user