| 422 | } |
| 423 | |
| 424 | static void get_d(struct line *line, double *s_in) |
| 425 | { |
| 426 | char *s; |
| 427 | char *endptr; |
| 428 | |
| 429 | get_s(line, &s); |
| 430 | |
| 431 | errno = 0; |
| 432 | *s_in = strtod(s, &endptr); |
| 433 | if (*endptr || errno == ERANGE) |
| 434 | die("line[%d]: invalid float value", line->nr); |
| 435 | } |
| 436 | |
| 437 | static int pretty; |
| 438 |