[Previous] [Contents] [Next]

wcsncmp()

Compare two strings, up to a given length

Synopsis:

#include <wchar.h>

int wcsncmp( const wchar_t * ws1,
             const wchar_t * ws2,
             size_t n );

Library:

libc

Description:

The wcsncmp() function compares no more than n wide characters from the string pointed to by ws1 to the string pointed to by ws2.

Returns:

< 0
ws1 is less than ws2.
0
ws1 is equal to ws2.
> 0
ws1 is greater than ws2.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

"String manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]