Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

wcscmp - compare two wide character strings

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

int wcscmp(const wchar_t *ws1, const wchar_t *ws2);

Description

wcscmp() compares wide character strings ws1 and ws2 lexically, e.g.:
"circle" is lexically less than "circular";
"bustle" is lexically greater than "bus".

Return val.

Integer value, i.e.:

< 0

ws1 is lexically less than ws2.

= 0

ws1 and ws2 are lexically equal.

> 0

ws1 is lexically greater than ws2.

Notes

Wide character strings terminated with the null wide character code (\0) are expected as
arguments.
The collating sequence is based on the EBCDIC character set.

Restriction
This version of the C runtime system only supports 1-byte characters as wide character
codes. They are of type wchar_t (see stddef.h). (End)

See also

wcsncmp(), wchar.h.