- Tabs to spaces.
[AROS.git] / workbench / libs / locale / getlocalestr.c
blob9f0c720cde8177f84918d8bca64d09e9a21b213b
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: GetLocaleStr() - Get a built-in system string.
6 Lang: english
7 */
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include "locale_intern.h"
12 #include <aros/asmcall.h>
14 /*****************************************************************************
16 NAME */
17 #include <proto/locale.h>
19 AROS_LH2(CONST_STRPTR, GetLocaleStr,
21 /* SYNOPSIS */
22 AROS_LHA(const struct Locale *, locale, A0),
23 AROS_LHA(ULONG, stringNum, D0),
25 /* LOCATION */
26 struct LocaleBase *, LocaleBase, 13, Locale)
28 /* FUNCTION
29 This function will return a system standard string from
30 the current Locale.
32 INPUTS
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.
38 RESULT
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.
43 NOTES
45 EXAMPLE
47 BUGS
49 SEE ALSO
51 INTERNALS
53 *****************************************************************************/
55 AROS_LIBFUNC_INIT
57 #ifdef AROS_CALL1
58 return AROS_CALL1(CONST_STRPTR, IntL(locale)->il_LanguageFunctions[3],
59 AROS_LCA(ULONG, stringNum, D0), struct LocaleBase *, LocaleBase);
60 #else
61 return AROS_UFC2(CONST_STRPTR, IntL(locale)->il_LanguageFunctions[3],
62 AROS_UFCA(ULONG, stringNum, D0),
63 AROS_UFCA(struct LocaleBase *, LocaleBase, A6));
64 #endif
66 AROS_LIBFUNC_EXIT