2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
5 Desc: GetLocaleStr() - Get a built-in system string.
8 #include <exec/types.h>
9 #include <proto/exec.h>
10 #include "locale_intern.h"
11 #include <aros/asmcall.h>
13 /*****************************************************************************
16 #include <proto/locale.h>
18 AROS_LH2(CONST_STRPTR
, GetLocaleStr
,
21 AROS_LHA(const struct Locale
*, locale
, A0
),
22 AROS_LHA(ULONG
, stringNum
, D0
),
25 struct LocaleBase
*, LocaleBase
, 13, Locale
)
28 This function will return a system standard string from
32 locale - The current locale.
33 stringNum - The number of the string to get a pointer to.
34 See the include file <libraries/locale.h>
35 for a list of possible values.
38 A pointer to a NULL-terminated string, or NULL if the string
39 requested was unknown. The returned string is READ-ONLY and
40 is valid only as long as the Locale remains open.
52 *****************************************************************************/
57 return AROS_CALL1(CONST_STRPTR
, IntL(locale
)->il_LanguageFunctions
[3],
58 AROS_LCA(ULONG
, stringNum
, D0
),
59 struct LocaleBase
*, LocaleBase
);
61 return AROS_UFC2(CONST_STRPTR
, IntL(locale
)->il_LanguageFunctions
[3],
62 AROS_UFCA(ULONG
, stringNum
, D0
),
63 AROS_UFCA(struct LocaleBase
*, LocaleBase
, A6
));