LOCALE(5) BSD LOCALE(5)
NAME
locale - header file for locale subroutines
SYNOPSIS
#include <locale.h>
DESCRIPTION
The locale.h header file defines several macros, a data structure, and
the functions setlocale(3) and localeconv(3).
The following macros are defined:
Macro Name Value Description
LC_ALL 0 Selects entire locale.
LC_COLLATE 1 Selects collation portion of locale
LC_CTYPE 2 Selects character type portion of locale
LC_MONETARY 3 Selects monetary portion of locale
LC_NUMERIC 4 Selects numeric (non-monetary) portion
of locale
LC_TIME 5 Selects time portion of locale
The lconv structure is defined as follows:
struct lconv {
char *int_curr_symbol; /* international currency sym. */
char *currency_symbol; /* (local) currency sym. */
char *mon_decimal_point; /* monetary decimal point */
char *mon_thousands_sep; /* monetary thousands separator */
char *mon_grouping; /* monetary grouping */
char *positive_sign; /* positive sign */
char *negative_sign; /* negative sign */
char int_frac_digits; /* international fractional digits */
char frac_digits; /* fractional digits */
char p_cs_precedes; /* pos. currency sym. preceeds */
char p_sep_by_space; /* pos. currency sym. sep. by space */
char p_sign_posn; /* pos. sign position */
char n_cs_precedes; /* neg. currency sym. preceeds */
char n_sep_by_space; /* neg. currency sym. sep. by space */
char n_sign_posn; /* neg. sign position */
char *decimal_point; /* decimal point (aka RADIXCHAR) */
char *thousands_sep; /* thousands separator */
char *grouping; /* grouping */
};
FILES
/usr/include/locale.h
SEE ALSO
localeconv(3), setlocale(3).