Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
Go to the source code of this file.
Functions | |
char * | nl_langinfo (nl_item item) |
Variables | |
static const char | c_time [] |
static const char | c_messages [] |
static const char | c_numeric [] |
char* nl_langinfo | ( | nl_item | item | ) |
The nl_langinfo function can be used to access individual elements of the locale categories. Unlike the localeconv function, which returns all the information, nl_langinfo lets the caller select what information it requires. This is very fast and it is not a problem to call this function multiple times.
A second advantage is that in addition to the numeric and monetary formatting information, information from the LC_TIME and LC_MESSAGES categories is available.
The type item
is defined in nl_types.h. The argument item is a numeric value defined in this header.
Definition at line 64 of file langinfo.c.
References assert, c_messages, c_numeric, c_time, CODESET, LC_ALL, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and LC_TIME.
Referenced by asctime_r().
|
static |
Definition at line 57 of file langinfo.c.
Referenced by nl_langinfo().
|
static |
|
static |
Definition at line 6 of file langinfo.c.
Referenced by nl_langinfo().