2 * Support international type specific characters.
13 #define NULL ((void *) 0)
17 /* These are the possibilities for the first argument to setlocale.
18 The code assumes that LC_ALL is the highest value, and zero the lowest. */
28 /* Structure giving information about numeric and monetary notation. */
31 /* Numeric (non-monetary) information. */
33 char *decimal_point; /* Decimal point character. */
34 char *thousands_sep; /* Thousands separator. */
35 /* Each element is the number of digits in each group;
36 elements with higher indices are farther left.
37 An element with value CHAR_MAX means that no further grouping is done.
38 An element with value 0 means that the previous element is used
39 for all groups farther left. */
42 /* Monetary information. */
44 /* First three chars are a currency symbol from ISO 4217.
45 Fourth char is the separator. Fifth char is '\0'. */
46 char *int_curr_symbol;
47 char *currency_symbol; /* Local currency symbol. */
48 char *mon_decimal_point; /* Decimal point character. */
49 char *mon_thousands_sep; /* Thousands separator. */
50 char *mon_grouping; /* Like `grouping' element (above). */
51 char *positive_sign; /* Sign for positive values. */
52 char *negative_sign; /* Sign for negative values. */
53 char int_frac_digits; /* Int'l fractional digits. */
54 char frac_digits; /* Local fractional digits. */
55 /* 1 if currency_symbol precedes a positive value, 0 if succeeds. */
57 /* 1 iff a space separates currency_symbol from a positive value. */
59 /* 1 if currency_symbol precedes a negative value, 0 if succeeds. */
61 /* 1 iff a space separates currency_symbol from a negative value. */
63 /* Positive and negative sign positions:
64 0 Parentheses surround the quantity and currency_symbol.
65 1 The sign string precedes the quantity and currency_symbol.
66 2 The sign string follows the quantity and currency_symbol.
67 3 The sign string immediately precedes the currency_symbol.
68 4 The sign string immediately follows the currency_symbol. */
73 extern char *setlocale(int __category, __const char *__locale);
75 /* Return the numeric/monetary information for the current locale. */
76 extern struct lconv *localeconv __P ((void));