SysMon: remove dead code
[AROS.git] / rom / utility / stricmp.c
blobae8f793eb4de6081cfe4ee979c0ec59cc01b140b
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <exec/types.h>
9 #include <aros/libcall.h>
10 #include "intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <proto/utility.h>
17 AROS_LH2(LONG, Stricmp,
19 /* SYNOPSIS */
20 AROS_LHA(CONST_STRPTR, string1, A0),
21 AROS_LHA(CONST_STRPTR, string2, A1),
23 /* LOCATION */
24 struct UtilityBase *, UtilityBase, 27, Utility)
26 /* FUNCTION
27 Compares two strings treating lower and upper case characters
28 as identical.
30 INPUTS
31 string1, string2 - The strings to compare.
33 RESULT
34 <0 if string1 < string2
35 ==0 if string1 == string2
36 >0 if string1 > string2
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 HISTORY
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
53 UBYTE c1, c2;
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++);
61 }while(c1==c2&&c1);
63 /* Get result. */
64 return (LONG)c1-(LONG)c2;
65 AROS_LIBFUNC_EXIT
66 } /* Stricmp */