1.TH locale.h 3 scc\-VERSION2.SH NAME3locale.h - localization category macros4.SH SYNOPSIS5#include <locale.h>67The locale.h header declares the following functions:89.nf10char *setlocale(int category, const char *locale);11struct lconv *localeconv(void);12.fi13.SH DESCRIPTION14The locale.h header defines the following macros:1516.nf17LC_ALL18LC_COLLATE19LC_CTYPE20LC_MESSAGES21LC_MONETARY22LC_NUMERIC23LC_TIME24.fi2526Each macro expands to a distinct integer constant expression27that may be passed as the28.I category29argument to30.BR setlocale .3132The locale.h header also declares the lconv structure with at least33the following members:3435.nf36char *currency_symbol37char *decimal_point38char frac_digits39char *grouping40char *int_curr_symbol41char int_frac_digits42char int_n_cs_precedes43char int_n_sep_by_space44char int_n_sign_posn45char int_p_cs_precedes46char int_p_sep_by_space47char int_p_sign_posn48char *mon_decimal_point49char *mon_grouping50char *mon_thousands_sep51char *negative_sign52char n_cs_precedes53char n_sep_by_space54char n_sign_posn55char *positive_sign56char p_cs_precedes57char p_sep_by_space58char p_sign_posn59char *thousands_sep60.fi6162The members of the63.I lconv64structure are:65.TP 1066currency_symbol67The currency symbol used in the current locale.68.TP69decimal_point70The decimal separator for non-monetary numeric values.71.TP72thousands_sep73The character that separates digit groups74to the left of the decimal point in non-monetary values.75.TP76grouping77A string encoding the sizes of digit groups in78formatted non-monetary quantities.79.TP80mon_decimal_point81The decimal separator used in monetary values.82.TP83mon_thousands_sep84The digit group separator for monetary quantities.85.TP86mon_grouping87A string encoding the sizes of digit groups in88formatted monetary quantities.89.TP90positive_sign91The string used to mark a non-negative monetary value.92.TP93negative_sign94The string used to mark a negative monetary value.95.TP96frac_digits97The number of digits after the decimal point in a locally98formatted monetary quantity.99.TP100p_cs_precedes101Set to 1 if currency_symbol comes before the value102for a non-negative locally formatted monetary quantity,103or 0 if it follows.104.TP105n_cs_precedes106Set to 1 if currency_symbol comes before the value107for a negative locally formatted monetary quantity,108or 0 if it follows.109.TP110p_sep_by_space111Encodes the spacing between currency_symbol, the sign string,112and the value for a non-negative locally formatted monetary quantity.113.TP114n_sep_by_space115Encodes the spacing between currency_symbol, the sign string,116and the value for a negative locally formatted monetary quantity.117.TP118p_sign_posn119Encodes where the positive_sign is placed for a non-negative120locally formatted monetary quantity.121.TP122n_sign_posn123Encodes where the negative_sign is placed for a negative124locally formatted monetary quantity.125.TP126int_curr_symbol127The international currency symbol for the current locale.128.TP129int_frac_digits130The number of digits after the decimal point in an internationally131formatted monetary quantity.132.TP133int_p_cs_precedes134Set to 1 if int_curr_symbol comes before the value135for a non-negative internationally formatted monetary quantity,136or 0 if it follows.137.TP138int_n_cs_precedes139Set to 1 if int_curr_symbol comes before the value140for a negative internationally formatted monetary quantity,141or 0 if it follows.142.TP143int_p_sep_by_space144Encodes the spacing between int_curr_symbol, the sign string,145and the value for a non-negative internationally formatted monetary quantity.146.TP147int_n_sep_by_space148Encodes the spacing between int_curr_symbol, the sign string,149and the value for a negative internationally formatted monetary quantity.150.TP151int_p_sign_posn152Encodes where the positive_sign is placed for a non-negative153internationally formatted monetary quantity.154.TP155int_n_sign_posn156Encodes where the negative_sign is placed for a negative157internationally formatted monetary quantity.158.SH STANDARDS159ISO/IEC 9899:1999 Section 7.11160161ISO/IEC 9899:1999 Section 7.11.2.1162.SH SEE ALSO163.BR localeconv (3)164.BR setlocale (3)