Contains native language support (locale) information.
#include <locale.h>
struct lconv
{
int country;
int language;
char name[8];
char decimal_point [4];
char thousands_sep [4];
char grouping [4];
char currency_symbol [4];
char mon_decimal_point [4];
char mon_thousands_sep [4];
char mon_grouping [8];
char positive_sign [4];
char negative_sign [4];
char frac_digits;
char p_cs_precedes;
char p_sep_by_space;
char p_sign_posn;
char n_cs_precedes;
char n_sep_by_space;
char n_sign_posn;
char reserved;
char int_curr_symbol[15];
char int_frac_digits;
int always_24;
char hour_sep[4];
char hour_sans_sec_sep[4];
char date_sep[4];
char time_fmt[16];
char date_fmt[16];
char full_date_fmt[32];
char ampm[32];
char days[160];
char day_abbrevs[160];
char months[160];
char month_abbrevs[160];
};
Specifies the internal representation of the country.
Specifies the internal representation of the language.
Specifies the name of the locale.
Specifies the decimal point character used to format non-monetary quantities.
Specifies the character used to separate groups of digits to the left of the decimal point character in non-monetary quantities.
Specifies the size of each group of digits in formatted non-monetary quantities.
Specifies the local currency symbol applicable to the locale.
Specifies the character used as a decimal point in monetary quantities.
Specifies the character used to separate groups of digits to the left of the decimal point character in formatted monetary quantities.
Specifies the size of each group of digits in formatted monetary quantities.
Specifies the character used to indicate non-negative monetary quantities.
Specifies the character used to indicate negative monetary quantities.
Specifies the number of fractional digits to be displayed in locally formatted monetary quantities
Specifies whether the currency symbol precedes or follows the value for non-negative formatted monetary quantities:
Specifies whether the currency symbol is separated by a space from the value for non-negative formatted monetary quantities:
Specifies the position of the positive_sign field for a formatted monetary quantity.
Specifies whether the currency symbol precedes or follows the value for negative formatted monetary quantities:
Specifies whether the currency symbol is separated by a space from the value for negative formatted monetary quantities:
Specifies the position of the negative_sign field for a formatted monetary quantity.
Reserved for future use.
Specifies the international currency symbol applicable to the locale.
Specifies the number of fractional digits to display in internationally formatted monetary quantities.
Specifies whether 24-hour display is enforced.
Specifies the hour and seconds separator.
Specifies the hour separator when no seconds are displayed.
Specifies the separator for month, day, year.
Specifies the hours, minutes, seconds format (hh:mm:ss).
Specifies the month, day, and year format (mm/dd/yyyy).
Specifies the weekday, month, day, and year format.
Specifies a delimited string indicating am and pm.
Specifies a delimited string indicating AM and PM.
Specifies a delimited string of day names.
Specifies a delimited string of abbreviated day names.
Specifies a delimited string of month names.
Specifies a delimited string of abbreviated month names.
The int_curr_symbol field stores the international currency symbol applicable to the current locale. The first three characters of the int_curr_symbol field contain the alphabetical international currency symbol in accordance with ISO 4217 Codes for the Representation of Currency and Funds. The fourth character (preceding the null terminator) is the character that separates the international currency symbol from the monetary quantity.
The elements of the grouping and mon_grouping fields are interpreted as follows:
The values of the p_sign_posn and n_sign_posn fields are interpreted as follows: