wcsstr(3) Library Functions Manual wcsstr(3) wcsstr - C (libc, -lc) #include wchar_t *wcsstr(const wchar_t *haystack, const wchar_t *needle); The wcsstr() function is the wide-character equivalent of the strstr(3) function. It searches for the first occurrence of the wide-character string needle (without its terminating null wide character (L'\0')) as a substring in the wide-character string haystack. wcsstr() needle haystack. , needle haystack, NULL. , needle , haystack. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |wcsstr() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. POSIX.1-2001, C99. strstr(3), wcschr(3) () Azamat Hackimov , Yuri Kozlov Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.15 17 2025 . wcsstr(3)