| 1029 | NUM is the numeric part of STR. */ |
| 1030 | |
| 1031 | static void |
| 1032 | check_for_offset (struct control *p, char const *str, char const *num) |
| 1033 | { |
| 1034 | if (xstrtoimax (num, NULL, 10, &p->offset, "") != LONGINT_OK) |
| 1035 | error (EXIT_FAILURE, 0, _("%s: integer expected after delimiter"), |
| 1036 | quote (str)); |
| 1037 | } |
| 1038 | |
| 1039 | /* Given that the first character of command line arg STR is '{', |
| 1040 | make sure that the rest of the string is a valid repeat count |