<langinfo.h>

The <langinfo.h> include file declares the nl_langinfo function. The include file also defines the macros that, in turn, define constants that are used to identify the information queried in the current locale, and the nl_item type, which is the type of the constants. The following macros are defined:

ABDAY_1 Abbreviated first day of the week
ABDAY_2 Abbreviated second day of the week
ABDAY_3 Abbreviated third day of the week
ABDAY_4 Abbreviated fourth day of the week
ABDAY_5 Abbreviated fifth day of the week
ABDAY_6 Abbreviated sixth day of the week
ABDAY_7 Abbreviated seventh day of the week
ABMON_1 Abbreviated first month
ABMON_2 Abbreviated second month
ABMON_3 Abbreviated third month
ABMON_4 Abbreviated fourth month
ABMON_5 Abbreviated fifth month
ABMON_6 Abbreviated sixth month
ABMON_7 Abbreviated seventh month
ABMON_8 Abbreviated eigth month
ABMON_9 Abbreviated ninth month
ABMON_10 Abbreviated tenth month
ABMON_11 Abbreviated eleventh month
ABMON_12 Abbreviated twelfth month
AM_STR String for morning
CODESET Current encoded character set of the process
CRNCYSTR Currency symbol
D_FMT String for formatting date
D_T_FMT String for formatting date and time
DAY_1 Name of the first day of the week
DAY_2 Name of the second day of the week
DAY_3 Name of the third day of the week
DAY_4 Name of the fourth day of the week
DAY_5 Name of the fifth day of the week
DAY_6 Name of the sixth day of the week
DAY_7 Name of the seventh day of the week
MON_1 Name of the first month
MON_2 Name of the second month
MON_3 Name of the third month
MON_4 Name of the fourth month
MON_5 Name of the fifth month
MON_6 Name of the sixth month
MON_7 Name of the seventh month
MON_8 Name of the eighth month
MON_9 Name of the ninth month
MON_10 Name of the tenth month
MON_11 Name of the eleventh month
MON_12 Name of the twelfth month
NOEXPR Negative response expression
PM_STR String for afternoon
RADIXCHAR Radix character
T_FMT String for formatting time
T_FMT_AMPM String for morning or afternoon time format
THOUSEP Separator for thousands
YESEXPR Affirmative response expression



Locales and Localization


setlocale -- Set Locale
<locale.h>