| 610 | |
| 611 | |
| 612 | static int |
| 613 | get_int_option(const char *str, const char *name, int *num) |
| 614 | { |
| 615 | size_t namelen= strlen(name); |
| 616 | if (!strncmp(str, name, namelen)) |
| 617 | { |
| 618 | *num= atoi(str + namelen); |
| 619 | if (*num == 0 && str[namelen] !='0') |
| 620 | { |
| 621 | fprintf(stderr, "\nBad numeric option value: %s\n\n", str); |
| 622 | usage(stderr, 1); |
| 623 | } |
| 624 | return 1; |
| 625 | } |
| 626 | return 0; |
| 627 | } |
| 628 | |
| 629 | |
| 630 | static void |
no test coverage detected