size_t wcslen(const wchar_t* kwpString);
#include <cwchar>
int main()
{
wchar_t waString[] = L"XoaX.net";
// Get the length of the string
size_t uiLength = wcslen(waString);
wprintf(L"The string \"%ws\" is %u characters long.\n",
waString, uiLength);
// Keep the window open until "Enter" is pressed
getwchar();
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.