If you want to know the size of a wchar_t string (wchar_t *), you want to use wcslen(3):
size_t wcslen (const wchar_t *ws);
If you want to know the size of a wchar_t string (wchar_t *), you want to use wcslen(3):
size_t wcslen (const wchar_t *ws);