Calculate the size of the buffer required for a strtod locale * conversion. */
| 92 | /* Calculate the size of the buffer required for a strtod locale |
| 93 | * conversion. */ |
| 94 | static int strtod_buffer_size(const char *s) |
| 95 | { |
| 96 | const char *p = s; |
| 97 | |
| 98 | while (valid_number_character(*p)) |
| 99 | p++; |
| 100 | |
| 101 | return p - s; |
| 102 | } |
| 103 | |
| 104 | /* Similar to strtod(), but must be passed the current locale's decimal point |
| 105 | * character. Guaranteed to be called at the start of any valid number in a string */ |
no test coverage detected