2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <exec/types.h>
9 #include <aros/libcall.h>
12 /*****************************************************************************
15 #include <proto/utility.h>
17 AROS_LH2(LONG
, Stricmp
,
20 AROS_LHA(CONST_STRPTR
, string1
, A0
),
21 AROS_LHA(CONST_STRPTR
, string2
, A1
),
24 struct UtilityBase
*, UtilityBase
, 27, Utility
)
27 Compares two strings treating lower and upper case characters
31 string1, string2 - The strings to compare.
34 <0 if string1 < string2
35 ==0 if string1 == string2
36 >0 if string1 > string2
50 *****************************************************************************/
55 /* Loop as long as the strings are identical and valid. */
58 /* Get characters, convert them to lower case. */
59 c1
=ToLower(*string1
++);
60 c2
=ToLower(*string2
++);
64 return (LONG
)c1
-(LONG
)c2
;