home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_11 / 2.ddi / INCLUDE.ZIP / LOCALE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-13  |  1.3 KB  |  69 lines

  1. /*  locale.h
  2.  
  3.     Copyright (c) Borland International 1987,1988,1990,1991
  4.     All Rights Reserved.
  5. */
  6.  
  7. #ifndef __LOCALE_H
  8. #define __LOCALE_H
  9.  
  10. #ifdef __DLL__
  11. #define _FAR far
  12. #else
  13. #define _FAR
  14. #endif
  15.  
  16. #if __STDC__
  17. #define _Cdecl
  18. #else
  19. #define _Cdecl  cdecl
  20. #endif
  21.  
  22. #ifndef NULL
  23. #if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
  24. #define NULL    0
  25. #else
  26. #define NULL    0L
  27. #endif
  28. #endif
  29.  
  30. #define LC_ALL      0
  31. #define LC_COLLATE  1
  32. #define LC_CTYPE    2
  33. #define LC_MONETARY 3
  34. #define LC_NUMERIC  4
  35. #define LC_TIME     5
  36.  
  37. struct lconv
  38.    {
  39.    char _FAR *decimal_point;
  40.    char _FAR *thousands_sep;
  41.    char _FAR *grouping;
  42.    char _FAR *int_curr_symbol;
  43.    char _FAR *currency_symbol;
  44.    char _FAR *mon_decimal_point;
  45.    char _FAR *mon_thousands_sep;
  46.    char _FAR *mon_grouping;
  47.    char _FAR *positive_sign;
  48.    char _FAR *negative_sign;
  49.    char int_frac_digits;
  50.    char frac_digits;
  51.    char p_cs_precedes;
  52.    char p_sep_by_space;
  53.    char n_cs_precedes;
  54.    char n_sep_by_space;
  55.    char p_sign_posn;
  56.    char n_sign_posn;
  57.    };
  58.  
  59. #ifdef __cplusplus
  60. extern "C" {
  61. #endif
  62. char _FAR * _Cdecl setlocale( int __category, const char _FAR *__locale );
  63. struct lconv _FAR * _Cdecl localeconv( void );
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68. #endif
  69.