MCPcopy Create free account
hub / github.com/coreutils/coreutils / check_for_offset

Function check_for_offset

src/csplit.c:1031–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029 NUM is the numeric part of STR. */
1030
1031static void
1032check_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

Callers 1

extract_regexpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected