home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / K < prev    next >
Encoding:
Text File  |  1992-12-09  |  1.3 KB  |  68 lines

  1. /*
  2.  *   locale.h -- ANSI 
  3.  *
  4.  *   Functions, types, and macros pertaining to geographic
  5.  *   localization of numeric formats.
  6.  *
  7.  *           Copyright (c) 1990, MetaWare Incorporated
  8.  */
  9.  
  10. #ifndef _LOCALE_H
  11. #define _LOCALE_H
  12. #pragma push_align_members(64);
  13.  
  14. #ifdef __CPLUSPLUS__
  15. extern "C" {
  16. #endif
  17.  
  18. struct lconv {
  19.     char *decimal_point;
  20.     char *thousands_sep;
  21.     char *grouping;
  22.     char *int_curr_symbol;
  23.     char *currency_symbol;
  24.     char *mon_decimal_point;
  25.     char *mon_thousands_sep;
  26.     char *mon_grouping;
  27.     char *positive_sign;
  28.     char *negative_sign;
  29.     char int_frac_digits;
  30.     char frac_digits;
  31.     char p_cs_precedes;
  32.     char p_sep_by_space;
  33.     char n_cs_precedes;
  34.     char n_sep_by_space;
  35.     char p_sign_posn;
  36.     char n_sign_posn;
  37. };
  38.  
  39. #ifndef NULL
  40. #define NULL            ((void *)0)
  41. #endif
  42.  
  43. #if _ESA
  44. #define LC_ALL         -1
  45. #define LC_COLLATE    0
  46. #define LC_CTYPE    1
  47. #define LC_MONETARY    2
  48. #define LC_NUMERIC    3
  49. #define LC_TIME        4
  50. #define LC_MESSAGES    5
  51. #else
  52. #define LC_ALL         1
  53. #define LC_COLLATE    2
  54. #define LC_CTYPE    3
  55. #define LC_MONETARY    4
  56. #define LC_NUMERIC    5
  57. #define LC_TIME        6
  58. #endif
  59.  
  60. extern char * setlocale(int __category, const char *__locale);
  61. extern struct lconv *localeconv(void);
  62.  
  63. #ifdef __CPLUSPLUS__
  64. }
  65. #endif
  66. #pragma pop_align_members();
  67. #endif /*_LOCALE_H*/
  68.