wmemcmp()

Compare the wide characters in two buffers

Synopsis:

#include <wchar.h>

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

Arguments:

ws1, ws2
The wide-character strings that you want to compare.
n
The number of wide characters to compare.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The wmemcmp() function compares n wide characters of the buffer pointed to by ws1 to those in the buffer 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, POSIX 1003.1

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

See also:

memccpy(), memcmp(), memcpy(), memicmp(), memmove(), memset() wcscmp(), wcsncmp(), wmemchr(), wmemcpy(), wmemmove(), wmemset()