locale.h 796 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef __LOCALE
  2. #define __LOCALE
  3. #pragma lib "/$M/lib/ape/libap.a"
  4. #include <stddef.h>
  5. #define LC_ALL 0
  6. #define LC_COLLATE 1
  7. #define LC_CTYPE 2
  8. #define LC_MONETARY 3
  9. #define LC_NUMERIC 4
  10. #define LC_TIME 5
  11. struct lconv {
  12. char *decimal_point;
  13. char *thousands_sep;
  14. char *grouping;
  15. char *int_curr_symbol;
  16. char *currency_symbol;
  17. char *mon_decimal_point;
  18. char *mon_thousands_sep;
  19. char *mon_grouping;
  20. char *positive_sign;
  21. char *negative_sign;
  22. char int_frac_digits;
  23. char frac_digits;
  24. char p_cs_precedes;
  25. char p_sep_by_space;
  26. char n_cs_precedes;
  27. char n_sep_by_space;
  28. char p_sign_posn;
  29. char n_sign_posn;
  30. };
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. extern char *setlocale(int, const char *);
  35. extern struct lconv *localeconv(void);
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif /* __LOCALE */