home *** CD-ROM | disk | FTP | other *** search
- /* locale.h (c) Copyright 1990 H.Rogers */
-
- #ifndef __LOCALE_H
- #define __LOCALE_H
-
- struct lconv
- {
- char *decimal_point; /* decimal point - non-monetary values */
- char *thousands_sep; /* thousands separator - non-monetary values */
- char *grouping; /* digit groups size - non-monetary values */
-
- /* The fields below only apply to monetary values. ? indicates a
- * boolean field where specifically 1 implies true. */
-
- char *int_curr_symbol; /* international currency symbol */
- char *currency_symbol; /* local currency symbol */
- char *mon_decimal_point; /* decimal point */
- char *mon_thousands_sep; /* thousands separator */
- char *mon_grouping; /* digit groups size */
- char *positive_sign; /* positive sign */
- char *negative_sign; /* negative sign */
-
- char frac_digits; /* no. fractional digits */
- char p_cs_precedes; /* currency symbol before +ve value ? */
- char p_sep_by_space; /* space between cur. symbol and +ve value ? */
- char n_cs_precedes; /* currency symbol before -ve value ? */
- char n_sep_by_space; /* space between cur. symbol and -ve value ? */
-
- /* The two fields below may take 5 values:
- *
- * 0 - parentheses around quantity
- * 1 - sign string precedes quantity
- * 2 - sign string succeeds quantity
- * 3 - sign string immediately precedes currency symbol
- * 4 - sign string immediately succeeds currency symbol */
-
- char p_sign_posn; /* position of +ve sign */
- char n_sign_posn; /* position of -ve sign */
- };
-
- extern char *setlocale(int,const char *);
- extern struct lconv *localeconv(void);
-
- #define LC_ALL 0
-
- #define LC_COLLATE 0
- #define LC_CTYPE 0
- #define LC_NUMERIC 0
- #define LC_TIME 0
-
- #endif
-