Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

wmemcmp - compare two wide character strings

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

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

Description

wmemcmp() compares the first n bytes of the two wide character strings ws1 and ws2
lexicographically.

Return val.

< 0

= 0

> 0

ws1 is lexicographically smaller than ws2.

ws1 and ws2 are lexicographically equal.

ws1 is lexicographically larger than ws2.

Notes

This version of the C runtime system only supports 1-byte characters as wide character
codes.

See also

memcmp()wcsstr()wmemchr()wmemcpy().