uninicmp

Compares, with case insensitivity, a specified number of characters in two Unicode strings.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  int uninicmp (
     const unicode_t   *s1,
     const unicode_t   *s2
     size_t             n);
  

Parameters

s1

(IN) Points to the first string to be compared.

s2

(IN) Points to the second string to be compared.

n

(IN) Specifies the maximum number of characters to compare.

Return Values

Returns one of the following int values:

Remarks

The uniicmp function compares s1 to s2, starting with the first character in each string and continuing with subsequent characters until either the corresponding characters differ, or the end of the strings is reached. The comparison ignores any differences in case.

The uniicmp function is useful for comparing strings for equality. Do not call unicmp for sorting strings into collation order.

The uniicmp function corresponds to the stricmp function.

See Also