mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-24 11:25:30 +00: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