wcscasecmp

Compares two wide-character strings, ignoring differences in case.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  int  wcscasecmp (
     const wchar_t   *ws1,
     const wchar_t   *ws2);
  

Parameters

ws1

(IN) Points to the first string to compare.

ws2

(IN) Points to the second string to compare.

Return Values

Returns 0 if the two strings match, except for case distinctions. Otherwise, it returns a positive integer if ws1 is greater than ws2 and a negative integer if ws1 is less than ws2.

Remarks

The wcscasecmp function is the wide-character equivalent of strcasecmp.It compares two strings, ignoring any differences in case.

Each character is treated as if it is of type unsigned char, and NULL pointers are treated as pointers to empty strings.