wcslen(3) Library Functions Manual wcslen(3) wcslen - LIBRARY Standard C library (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 ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . wcslen(3)