localeconv.c 585 B

1234567891011121314151617181920212223242526
  1. #include <locale.h>
  2. static struct lconv _en_US = {
  3. .decimal_point = ".",
  4. .thousands_sep = ",",
  5. .grouping = "\x03\x03",
  6. .int_curr_symbol = "USD ",
  7. .currency_symbol = "$",
  8. .mon_decimal_point = ".",
  9. .mon_thousands_sep = ",",
  10. .mon_grouping = "\x03\x03",
  11. .positive_sign = "+",
  12. .negative_sign = "-",
  13. .int_frac_digits = 2,
  14. .frac_digits = 2,
  15. .p_cs_precedes = 1,
  16. .p_sep_by_space = 0,
  17. .n_cs_precedes = 1,
  18. .n_sep_by_space = 0,
  19. .p_sign_posn = 1,
  20. .n_sign_posn = 1,
  21. };
  22. struct lconv * localeconv(void) {
  23. return &_en_US;
  24. }