| 40 | } |
| 41 | |
| 42 | static int |
| 43 | cf_int(char *val) |
| 44 | { |
| 45 | char *end; |
| 46 | errno = 0; |
| 47 | long int x = strtol(val, &end, 10); |
| 48 | if (errno || end == val || end && *end) |
| 49 | cf_err("Invalid number"); |
| 50 | if ((long int)(int) x != x) |
| 51 | cf_err("Number out of range"); |
| 52 | return x; |
| 53 | } |
| 54 | |
| 55 | static void |
| 56 | cf_entry_toplevel(char *key, char *val) |
no test coverage detected
searching dependent graphs…