(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/locale.h>

struct Locale * OpenLocale (name)

LOCATION
In LocaleBase at offset 26

SYNOPSIS
STRPTR name

FUNCTION
This function will open for use a named locale. A locale is a data structure that contains many different parameters that an application needs in order to localise itself. Using this information an application can dynamically adapt to the user's environment.

Locales are created using the Locale Preferences Editor. If you pass a NULL instead of a name, then you will receive the current default Locale. This is the normal procedure.

INPUTS
name
The name of the locale you wish opened, or NULL to open the current default locale. This will be an IFF PREF file which contains both LCLE and CTRY chunks.

RESULT
A pointer to an initialised Locale structure, or NULL if none could be opened. If NULL is returned you can use IoErr() to find out what caused this error.

If you pass NULL, you will always succeed.

EXAMPLE

SEE ALSO
CloseLocale()

NOTES

BUGS

INTERNALS

HISTORY
26.11.1998 iaint
Fixed a large number of errors. Even compiles now. Doesnt work though...
20.10.1998 hkiel
Amiga Research OS
16.08.1998 iaint
Initial - not working - locale.library. mmf.s is the meta makefile