locale.h 980 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * locale.h - localization
  3. */
  4. /* $Header$ */
  5. #ifndef _LOCALE_HEADER_
  6. #define _LOCALE_HEADER_
  7. struct lconv {
  8. char *decimal_point; /* "." */
  9. char *thousands_sep; /* "" */
  10. char *grouping; /* "" */
  11. char *int_curr_symbol; /* "" */
  12. char *currency_symbol; /* "" */
  13. char *mon_decimal_point; /* "" */
  14. char *mon_thousands_sep; /* "" */
  15. char *mon_grouping; /* "" */
  16. char *positive_sign; /* "" */
  17. char *negative_sign; /* "" */
  18. char frac_digits; /* CHAR_MAX */
  19. char p_cs_precedes; /* CHAR_MAX */
  20. char p_sep_by_space; /* CHAR_MAX */
  21. char n_cs_precedes; /* CHAR_MAX */
  22. char n_sep_by_space; /* CHAR_MAX */
  23. char p_sign_posn; /* CHAR_MAX */
  24. char n_sign_posn; /* CHAR_MAX */
  25. };
  26. #ifndef NULL
  27. #define NULL 0
  28. #endif /* NULL */
  29. #define LC_ALL 1
  30. #define LC_COLLATE 2
  31. #define LC_CTYPE 3
  32. #define LC_MONETARY 4
  33. #define LC_NUMERIC 5
  34. #define LC_TIME 6
  35. char *setlocale(int category, const char *locale);
  36. struct lconv *localeconv(void);
  37. #endif /* _LOCALE_HEADER_ */