2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: GetLocaleStr() - Get a built-in system string.
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include "locale_intern.h"
12 #include <aros/asmcall.h>
14 /*****************************************************************************
17 #include <proto/locale.h>
19 AROS_LH2(CONST_STRPTR
, GetLocaleStr
,
22 AROS_LHA(const struct Locale
*, locale
, A0
),
23 AROS_LHA(ULONG
, stringNum
, D0
),
26 struct LocaleBase
*, LocaleBase
, 13, Locale
)
29 This function will return a system standard string from
33 locale - The current locale.
34 stringNum - The number of the string to get a pointer to.
35 See the include file <libraries/locale.h>
36 for a list of possible values.
39 A pointer to a NULL-terminated string, or NULL if the string
40 requested was unknown. The returned string is READ-ONLY and
41 is valid only as long as the Locale remains open.
53 *****************************************************************************/
58 return AROS_CALL1(CONST_STRPTR
, IntL(locale
)->il_LanguageFunctions
[3],
59 AROS_LCA(ULONG
, stringNum
, D0
), 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
));