wcsncmp(3) Library Functions Manual wcsncmp(3) wcsncmp - C (libc, -lc) #include int wcsncmp(const wchar_t s1[], const wchar_t s2[], size_t n); The wcsncmp() function is the wide-character equivalent of the strncmp(3) function. It compares the wide-character string pointed to by s1 and the wide-character string pointed to by s2, but at most n wide characters from each string. In each string, the comparison extends only up to the first occurrence of a null wide character (L'\0'), if any. wcsncmp() , , s1 s2, n , . , i (i < n) s1[i] s2[i]. , i (i < n) s1[i] s2[i]. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |wcsncmp() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ C11, POSIX.1-2008. POSIX.1-2001, C99. strncmp(3), wcsncasecmp(3) () Azamat Hackimov Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () . Linux man-pages 6.18 8 2026 . wcsncmp(3)