2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: LocStrnicmp - locale.library's private replacement
6 of utility.library/Strnicmp function. IPrefs will install
12 #include <exec/types.h>
13 #include <proto/exec.h>
14 #include <proto/locale.h>
15 #include "locale_intern.h"
16 #include <aros/asmcall.h>
19 #define DEBUG_STRNCMP(x) ;
21 /*****************************************************************************
24 #include <proto/locale.h>
26 AROS_PLH3(LONG
, LocStrnicmp
,
29 AROS_LHA(CONST_STRPTR
, string1
, A0
),
30 AROS_LHA(CONST_STRPTR
, string2
, A1
),
31 AROS_LHA(LONG
, length
, D0
),
34 struct UtilityBase
*, UtilityBase
, 32, Locale
)
37 See utility.library/Strnicmp
40 See utility.library/Strnicmp
46 This function is not called by apps directly. Instead dos.library/DosGet-
47 LocalizedString is patched to use this function. This means, that the
48 LocaleBase parameter above actually points to UtilityBase, so we make use of
49 the global LocaleBase variable. This function is marked as private,
50 thus the headers generator won't mind the different basename in the header.
57 utility.library/Strnicmp(), locale.library/StrnCmp().
63 *****************************************************************************/
71 DEBUG_STRNCMP(dprintf("locStrnCmp: <%s> <%s> len %ld\n",
76 DEBUG_STRNCMP(dprintf("locStrnCmp: CurrentLocale 0x%lx\n",
77 (struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
));
79 retval
= StrnCmp((struct Locale
*)IntLB(LocaleBase
)->lb_CurrentLocale
,
85 DEBUG_STRNCMP(dprintf("StrnCmp: retval 0x%lx\n",