nl_langinfo(S-osr5)
nl_langinfo --
language information
Syntax
cc ... -lc
#include <langinfo.h>
char *nl_langinfo(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
nl_init.
The constant names and values of
item
are defined in the file
langinfo.h.
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 language 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
environ(M),
langinfo(FP),
nl_init(S-osr5),
nl_types(FP),
setlocale(S-osr5)
Standards conformance
nl_langinfo is
conformant with:
X/Open CAE Specification, System Interfaces and Headers,
Issue 4, 1992
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005