unincoll

Compares two Unicode strings, using the collating table of the current locale.

Library:LibC
Service:Characters and Strings

Syntax

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

Parameters

s1

(IN) Points to a string to use in the comparison.

s2

(IN) Points to a string to use in the comparison.

n

(IN) Specifies the number of characters in the string to compare.

Return Values

The unincoll function returns an integer less than, equal to, or greater than 0, indicating that the string pointed to by s1 is less than, equal to, or greater than the string pointed to by s2, according to the collating table selected.

Remarks

To compare only two characters, pass 1 as the value for the n parameter.

See Also

unicoll