wcsicmp

Compares lowercase versions of two wide-character strings.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

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

Parameters

ws1

(IN) Points to a null-terminated string to compare.

ws2

(IN) Points to a null-terminated 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 wcsicmp function is the wide-character equivalent of the stricmp function. It compares, with case insensitivity, the string pointed to by ws1 to the string pointed to by ws2. All uppercase characters from ws1 and ws2 are mapped to lowercase for the comparison.

See Also