home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJDEV201.ZIP / include / locale.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-27  |  1.2 KB  |  58 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_locale_h_
  3. #define __dj_include_locale_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #define LC_ALL        0x1f
  12. #define LC_COLLATE    0x01
  13. #define LC_CTYPE    0x02
  14. #define LC_MONETARY    0x04
  15. #define LC_NUMERIC    0x08
  16. #define LC_TIME        0x10
  17. #define NULL        0
  18.  
  19. struct lconv {
  20.   char *currency_symbol;
  21.   char *decimal_point;
  22.   char *grouping;
  23.   char *int_curr_symbol;
  24.   char *mon_decimal_point;
  25.   char *mon_grouping;
  26.   char *negative_sign;
  27.   char *positive_sign;
  28.   char *thousands_sep;
  29.   char frac_digits;
  30.   char int_frac_digits;
  31.   char n_cs_precedes;
  32.   char n_sep_by_space;
  33.   char n_sign_posn;
  34.   char p_cs_precedes;
  35.   char p_sep_by_space;
  36.   char p_sign_posn;
  37. };
  38.  
  39. struct lconv *    localeconv(void);
  40. char *        setlocale(int _category, const char *_locale);
  41.  
  42. #ifndef __STRICT_ANSI__
  43.  
  44. #ifndef _POSIX_SOURCE
  45.  
  46. #endif /* !_POSIX_SOURCE */
  47. #endif /* !__STRICT_ANSI__ */
  48. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  49.  
  50. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  51. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif /* !__dj_include_locale_h_ */
  58.