The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

nl_types.h - data types

 SYNOPSIS



#include <nl_types.h>

 DESCRIPTION

The <nl_types.h> header contains definitions of at least the following types:
nl_catd
Used by the message catalogue functions catopen(), catgets() and catclose() to identify a catalogue descriptor.
nl_item
Used by nl_langinfo() to identify items of langinfo data. Values of objects of type nl_item are defined in <langinfo.h>.

The <nl_types.h> header contains definitions of at least the following constants:

NL_SETD
Used by gencat when no $set directive is specified in a message text source file, see the Internationalisation Guide, Chapter 3, The Message System. This constant can be passed as the value of set_id on subsequent calls to catgets() (that is, to retrieve messages from the default message set). The value of NL_SETD is implementation-dependent.
NL_CAT_LOCALE
Value that must be passed as the oflag argument to catopen() to ensure that message catalogue selection depends on the LC_MESSAGES locale category, rather than directly on the environment variable.

The following are declared as functions and may also be defined as macros. Function prototypes must be provided for use with an ISO C compiler.


int       catclose(nl_catd);
char     *catgets(nl_catd, int, int, const char *);
nl_catd   catopen(const char *, int);

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

catclose(), catgets(), catopen(), nl_langinfo(), <langinfo.h>, the XCU specification, gencat.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]