locale.h 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * locale.h - localization
  3. */
  4. /* $Id$ */
  5. #if !defined(_LOCALE_H)
  6. #define _LOCALE_H
  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 int_frac_digits; /* CHAR_MAX */
  19. char frac_digits; /* CHAR_MAX */
  20. char p_cs_precedes; /* CHAR_MAX */
  21. char p_sep_by_space; /* CHAR_MAX */
  22. char n_cs_precedes; /* CHAR_MAX */
  23. char n_sep_by_space; /* CHAR_MAX */
  24. char p_sign_posn; /* CHAR_MAX */
  25. char n_sign_posn; /* CHAR_MAX */
  26. };
  27. #define NULL ((void *)0)
  28. #define LC_ALL 1
  29. #define LC_COLLATE 2
  30. #define LC_CTYPE 3
  31. #define LC_MONETARY 4
  32. #define LC_NUMERIC 5
  33. #define LC_TIME 6
  34. char *setlocale(int _category, const char *_locale);
  35. struct lconv *localeconv(void);
  36. #endif /* _LOCALE_H */