home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Developer CD v1.2
/
amidev_cd_12.iso
/
devcon
/
milan_1991
/
devcon91.2
/
locale
/
development
/
example
/
sample.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-01
|
1KB
|
50 lines
/* sample.c */
#include <exec/types.h>
#include <exec/libraries.h>
#include <libraries/locale.h>
#include <clib/exec_protos.h>
#include <clib/dos_protos.h>
#include <clib/locale_protos.h>
#include <pragmas/exec_pragmas.h>
#include <pragmas/dos_pragmas.h>
#include <pragmas/locale_pragmas.h>
#include "texttable.h"
/*****************************************************************************/
extern struct Library *DOSBase;
extern struct Library *SysBase;
struct LocaleInfo li;
/*****************************************************************************/
#define LocaleBase li.li_LocaleBase
#define catalog li.li_Catalog
/*****************************************************************************/
VOID main(VOID)
{
if (LocaleBase = OpenLibrary("locale.library",38))
catalog = OpenCatalogA(NULL,"sample.catalog",NULL);
PutStr(GetString(&li,MSG_HELLO));
PutStr(GetString(&li,MSG_BYE));
if (LocaleBase)
{
CloseCatalog(catalog);
CloseLibrary(LocaleBase);
}
}