INTERNATIONAL VERSION
Page 1 (printed 6/20/89)
NL_LANGINFO(S) UNIX System V NL_LANGINFO(S)
Name
nl_langinfo - language information
Syntax
#include <nl_types.h>
#include <langinfo.h>
char *nl_langinfo(item)
nl_item item;
Description
The nl_langinfo routine returns a pointer to a null
terminated string that contains information relevant to a
particular language or cultural area identified by the last
successful call to setlocale or nlinit. The constant names
and values of item are defined in the file langinfo.h.
Here is an example. The following statement sets a character
pointer called day to point to the string ``Dom'' if the
identified language is Portuguese or ``Sun'' if the
identified langage is English.
day = nl_langinfo(ABDAY_1)
If the parameter is not a valid item, nl_langinfo returns a
pointer to an empty (null) string.
See Also
langinfo(F), nl_types(F), environ(M), nl_init(S),
setlocale(S)
Value Added
nl_langinfo is an extension of AT&T System V provided by the
Santa Cruz Operation.
(printed 6/20/89)