home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / unixtools / unixlib / clib / h / locale < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.6 KB  |  52 lines

  1. /* locale.h (c) Copyright 1990 H.Rogers */
  2.  
  3. #ifndef __LOCALE_H
  4. #define __LOCALE_H
  5.  
  6. struct lconv
  7.   {
  8.   char    *decimal_point;     /* decimal point - non-monetary values */
  9.   char    *thousands_sep;     /* thousands separator - non-monetary values */
  10.   char    *grouping;        /* digit groups size - non-monetary values */
  11.  
  12. /* The fields below only apply to monetary values. ? indicates a
  13.  * boolean field where specifically 1 implies true. */
  14.  
  15.   char    *int_curr_symbol;    /* international currency symbol */
  16.   char    *currency_symbol;    /* local currency symbol */
  17.   char    *mon_decimal_point;    /* decimal point */
  18.   char    *mon_thousands_sep;    /* thousands separator */
  19.   char    *mon_grouping;        /* digit groups size */
  20.   char    *positive_sign;     /* positive sign */
  21.   char    *negative_sign;     /* negative sign */
  22.  
  23.   char    frac_digits;        /* no. fractional digits */
  24.   char    p_cs_precedes;        /* currency symbol before +ve value ? */
  25.   char    p_sep_by_space;     /* space between cur. symbol and +ve value ? */
  26.   char    n_cs_precedes;        /* currency symbol before -ve value ? */
  27.   char    n_sep_by_space;     /* space between cur. symbol and -ve value ? */
  28.  
  29. /* The two fields below may take 5 values:
  30.  *
  31.  * 0 - parentheses around quantity
  32.  * 1 - sign string precedes quantity
  33.  * 2 - sign string succeeds quantity
  34.  * 3 - sign string immediately precedes currency symbol
  35.  * 4 - sign string immediately succeeds currency symbol */
  36.  
  37.   char    p_sign_posn;        /* position of +ve sign */
  38.   char    n_sign_posn;        /* position of -ve sign */
  39.   };
  40.  
  41. extern    char        *setlocale(int,const char *);
  42. extern    struct lconv    *localeconv(void);
  43.  
  44. #define LC_ALL        0
  45.  
  46. #define LC_COLLATE    0
  47. #define LC_CTYPE    0
  48. #define LC_NUMERIC    0
  49. #define LC_TIME     0
  50.  
  51. #endif
  52.