locale.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. locale.h
  3. Values appropriate for the formatting of monetary and other
  4. numberic quantities.
  5. */
  6. #ifndef _LOCALE_H_
  7. #define _LOCALE_H_
  8. #include "_ansi.h"
  9. #define __need_NULL
  10. #include <stddef.h>
  11. #define LC_ALL 0
  12. #define LC_COLLATE 1
  13. #define LC_CTYPE 2
  14. #define LC_MONETARY 3
  15. #define LC_NUMERIC 4
  16. #define LC_TIME 5
  17. #define LC_MESSAGES 6
  18. _BEGIN_STD_C
  19. struct lconv
  20. {
  21. char *decimal_point;
  22. char *thousands_sep;
  23. char *grouping;
  24. char *int_curr_symbol;
  25. char *currency_symbol;
  26. char *mon_decimal_point;
  27. char *mon_thousands_sep;
  28. char *mon_grouping;
  29. char *positive_sign;
  30. char *negative_sign;
  31. char int_frac_digits;
  32. char frac_digits;
  33. char p_cs_precedes;
  34. char p_sep_by_space;
  35. char n_cs_precedes;
  36. char n_sep_by_space;
  37. char p_sign_posn;
  38. char n_sign_posn;
  39. char int_n_cs_precedes;
  40. char int_n_sep_by_space;
  41. char int_n_sign_posn;
  42. char int_p_cs_precedes;
  43. char int_p_sep_by_space;
  44. char int_p_sign_posn;
  45. };
  46. #ifndef _REENT_ONLY
  47. char *_EXFUN(setlocale,(int category, const char *locale));
  48. struct lconv *_EXFUN(localeconv,(void));
  49. #endif
  50. struct _reent;
  51. char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale));
  52. struct lconv *_EXFUN(_localeconv_r,(struct _reent *));
  53. _END_STD_C
  54. #endif /* _LOCALE_H_ */