Up to [local] / src / usr.bin / cut
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_2_9_BASE
Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 4 23:52:19 2000 UTC (23 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.6: +30 -14 lines
Diff to previous 1.6 (colored)
Handle the case where the last line of input does not contain a newline; issue reported by marc@snafu.org. The main thing here is we use fgetln() instead of fgets(), also giving us the advantage of being able to handle lines of unlimited length. Some -Wall and other fixes from millert@ as well.