| 25 | static char number_separator; |
| 26 | |
| 27 | char get_number_separator(void) |
| 28 | { |
| 29 | if (!number_separator) { |
| 30 | char buf[32]; |
| 31 | snprintf(buf, sizeof buf, "%f", 3.14); |
| 32 | if (strchr(buf, '.') != NULL) |
| 33 | number_separator = ','; |
| 34 | else |
| 35 | number_separator = '.'; |
| 36 | } |
| 37 | |
| 38 | return number_separator; |
| 39 | } |
| 40 | |
| 41 | char get_decimal_point(void) |
| 42 | { |
no outgoing calls
no test coverage detected