NWLstrcoll(3nw)


NWLstrcoll -- compares two strings according to the rules of the current locale

Synopsis

   #include <time.h> or #define NWL_EXCLUDE_TIME 
   #include <stdio.h> or #define NWL_EXCLUDE_FILE 
   #include <nwlocale.h> 
   

int NWAPI NWLstrcoll (char NWFAR *string1, char NWFAR *string2);

Description

The parameters are as follows:

string1
(IN) Points to the first string to compare.

string2
(IN) Points to the second string to compare.

Return values

When string1/string2 are relative to current locale setting:



integer >0 string1 > string2
integer = 0 string1 = string2
integer <0 string1 < string2

Notices

NWLstrcoll compares ``string1' to ``string2', both interpreted as appropriate to the LC_COLLATE category of the current locale. For a locale-sensitive comparision of two strings, call NWLstrcoll instead of strcmp.

Services

Internationalization

NCP calls

None

References

NWLsetlocale(3nw),


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.