wcsncmp(3) Library Functions Manual wcsncmp(3) wcsncmp - LIBRARY Standard C library (libc, -lc) #include int wcsncmp(const wchar_t s1[.n], const wchar_t s2[.n], 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 3 , . . , , . Linux man-pages 6.06 31 2023 . wcsncmp(3)