home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / famapi.zip / INCLUDE.ZIP / LOCALE.H < prev    next >
C/C++ Source or Header  |  1993-06-13  |  1KB  |  64 lines

  1. //
  2. //      **************************************************************
  3. //       JdeBP C++ Library Routines      General Public Licence v1.00
  4. //          Copyright (c) 1991,1992  Jonathan de Boyne Pollard
  5. //      **************************************************************
  6. //
  7. // LOCALE CONTROL (ANSI)
  8. //
  9.  
  10. #if !defined(___STDDEF_H_INCLUDED)
  11. #include <_stddef.h>
  12. #endif
  13.  
  14. #if !defined(__LOCALE_H_INCLUDED)
  15.  
  16. #define NULL    _NULL
  17.  
  18. #define LC_ALL      0
  19. #define LC_COLLATE  1
  20. #define LC_CTYPE    2
  21. #define LC_MONETARY 3
  22. #define LC_NUMERIC  4
  23. #define LC_TIME     5
  24.  
  25. #define LC_MINIMUM  LC_ALL
  26. #define LC_MAXIMUM  LC_TIME
  27.  
  28. struct lconv {
  29.         /* LC_MONETARY */
  30.     char *int_curr_symbol;
  31.     char *currency_symbol;
  32.     char *mon_decimal_point;
  33.     char *mon_thousands_sep;
  34.     char *mon_grouping;
  35.     char *positive_sign;
  36.     char *negative_sign;
  37.     char int_frac_digits;
  38.     char frac_digits;
  39.     char p_cs_precedes;
  40.     char p_sep_by_space;
  41.     char n_cs_precedes;
  42.     char n_sep_by_space;
  43.     char p_sign_posn;
  44.     char n_sign_posn;
  45.         /* LC_NUMERIC */
  46.     char *decimal_point;
  47.     char *thousands_sep;
  48.     char *grouping;
  49. };
  50.  
  51. extern "C" {
  52.  
  53. char *          _CDECL  setlocale   (int, const char *);
  54. struct lconv *  _CDECL  localeconv  (void);
  55.  
  56. extern struct lconv _CDECL  _Locale;
  57.  
  58. }
  59.  
  60. #define localeconv()    (&_Locale)
  61.  
  62. #define _LOCALE_H_INCLUDED
  63. #endif
  64.