wcsncasecmp

Compares a specified number of characters from two wide-character strings, ignoring case.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

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

Parameters

ws1

(IN) Points to the first wide-character string to compare.

ws2

(IN) Points to the second wide-character string to compare.

n

(IN) Specifies the number of characters to compare.

Return Values

Returns 0 if the two strings match, for the specified number of characters. Otherwise, it returns a positive integer if ws1 is greater than ws2 and a negative integer if ws1 is less than ws2.

Remarks

The wcsncasecmp function is identical to wcsncmp, except that the characters of each string are converted to lowercase before comparison.

See Also