![]() |
![]() |
![]() |
Compare two strings, up to a given length
#include <wchar.h> int wcsncmp( const wchar_t * ws1, const wchar_t * ws2, size_t n );
libc
The wcsncmp() function compares no more than n wide characters from the string pointed to by ws1 to the string pointed to by ws2.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
"String manipulation functions" and "Wide-character functions" in the summary of functions chapter.
![]() |
![]() |
![]() |