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


nl_types.h - data types


#include <nl_types.h>


The <nl_types.h> header contains definitions of at least the following types:
Used by the message catalogue functions catopen(), catgets() and catclose() to identify a catalogue descriptor.
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:

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.
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);






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 ]