wcslen(3) Library Functions Manual wcslen(3) wcslen - C (libc, -lc) #include size_t wcslen(const wchar_t *s); The wcslen() function is the wide-character equivalent of the strlen(3) function. It determines the length of the wide-character string pointed to by s, excluding the terminating null wide character (L'\0'). wcslen() s. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |wcslen() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. POSIX.1-2001, C99. In cases where the input buffer may not contain a terminating null wide character, wcsnlen(3) should be used instead. strlen(3) () Azamat Hackimov , Yuri Kozlov Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.15 17 2025 . wcslen(3)