utility.library/Strnicmp

Previous:
utility.library/Stricmp
TOC:
Table of Contents
Index:
All Documents
Next:
utility.library/TagInArray

     Title:
Strnicmp -- length-limited case-insensitive string compare. (V37)
     Synopsis:
result = Strnicmp(string1,string2,length);
D0   A0      A1   D0

LONG Strnicmp(STRPTR,STRPTR,LONG);
     Function:
This function compares two strings, ignoring case using a generic
case conversion routine. If the strings have different lengths,
the shorter is treated as if it were extended with zeros. This function
never compares more than 'length' characters.
     Parameters:
string1, string2 - strings to be compared
length - maximum number of characters to examine
     Results:
result - relationship between string1 and string2
<0 means string1 < string2
=0 means string1 = string2
>0 means string1 > string2
     Please note:
Whenever locale.library is installed in a system, this function is
replaced by language-specific code. This means that depending on
which language the user has currently selected, identical pairs of
strings may return different values when passed to this function.
This fact must be taken into consideration when using this function.
     Related topics:
Stricmp(), locale.library/StrnCmp()

Browse your own file: