c_locale.h 1.2 KB

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