locale.h 673 B

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