| 1374 | Return the number parsed, or an INTMAX_MAX on overflow. */ |
| 1375 | |
| 1376 | static intmax_t |
| 1377 | parse_n_units (char const *arg, char const *multipliers, char const *msgid) |
| 1378 | { |
| 1379 | intmax_t n; |
| 1380 | if (OVERFLOW_OK < xstrtoimax (arg, NULL, 10, &n, multipliers) || n < 1) |
| 1381 | strtoint_die (msgid, arg); |
| 1382 | return n; |
| 1383 | } |
| 1384 | |
| 1385 | /* Parse K/N syntax of chunk options. */ |
| 1386 |
no test coverage detected