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

Function handle_line_error

src/csplit.c:664–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662 on iteration REPETITION if nonzero. */
663
664static void
665handle_line_error (const struct control *p, intmax_t repetition)
666{
667 char buf[INT_BUFSIZE_BOUND (intmax_t)];
668
669 fprintf (stderr, _("%s: %s: line number out of range"),
670 program_name, quote (imaxtostr (p->lines_required, buf)));
671 if (repetition)
672 fprintf (stderr, _(" on repetition %jd\n"), repetition);
673 else
674 fprintf (stderr, "\n");
675
676 cleanup_fatal ();
677}
678
679/* Determine the line number that marks the end of this file,
680 then get those lines and save them to the output file.

Callers 1

process_line_countFunction · 0.85

Calls 1

cleanup_fatalFunction · 0.85

Tested by

no test coverage detected