home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c040 / 6.ddi / INCLUDE / LOCALE.H$ / LOCALE.bin
Encoding:
Text File  |  1989-10-04  |  1.5 KB  |  79 lines

  1. /***
  2. *locale.h - definitions/declarations for localization routines
  3. *
  4. *    Copyright (c) 1988-1990, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file defines the structures, values, macros, and functions
  8. *    used by the localization routines.
  9. *    [ANSI]
  10. *
  11. ****/
  12.  
  13. #if defined(_DLL) && !defined(_MT)
  14. #error Cannot define _DLL without _MT
  15. #endif
  16.  
  17. #ifdef _MT
  18. #define _FAR_ _far
  19. #else
  20. #define _FAR_
  21. #endif
  22.  
  23. /* define NULL pointer value */
  24.  
  25. #ifndef NULL
  26. #if (_MSC_VER >= 600)
  27. #define NULL    ((void *)0)
  28. #elif (defined(M_I86SM) || defined(M_I86MM))
  29. #define NULL    0
  30. #else
  31. #define NULL    0L
  32. #endif
  33. #endif
  34.  
  35.  
  36. /* Locale categories */
  37.  
  38. #define LC_ALL        0
  39. #define LC_COLLATE    1
  40. #define LC_CTYPE    2
  41. #define LC_MONETARY    3
  42. #define LC_NUMERIC    4
  43. #define LC_TIME     5
  44.  
  45. #define LC_MIN        LC_ALL
  46. #define LC_MAX        LC_TIME
  47.  
  48.  
  49. /* Locale convention structure */
  50.  
  51. #ifndef _LCONV_DEFINED
  52. struct lconv {
  53.     char *decimal_point;
  54.     char *thousands_sep;
  55.     char *grouping;
  56.     char *int_curr_symbol;
  57.     char *currency_symbol;
  58.     char *mon_decimal_point;
  59.     char *mon_thousands_sep;
  60.     char *mon_grouping;
  61.     char *positive_sign;
  62.     char *negative_sign;
  63.     char int_frac_digits;
  64.     char frac_digits;
  65.     char p_cs_precedes;
  66.     char p_sep_by_space;
  67.     char n_cs_precedes;
  68.     char n_sep_by_space;
  69.     char p_sign_posn;
  70.     char n_sign_posn;
  71.     };
  72. #define _LCONV_DEFINED
  73. #endif
  74.  
  75. /* function prototypes */
  76.  
  77. char _FAR_ * _FAR_ _cdecl setlocale(int, const char _FAR_ *);
  78. struct lconv _FAR_ * _FAR_ _cdecl localeconv(void);
  79.