[Previous] [Contents] [Index] [Next]

wmemcmp()

Compare wide characters in two buffers

Synopsis:

#include <wchar.h>

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

Library:

libc

Description:

The memcmp() function compares n bytes of the buffer pointed to by ws1 to the buffer pointed to by ws2.

Returns:

An integer, with the value given below:

<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:

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


[Previous] [Contents] [Index] [Next]