From: Eric Allman Date: Mon, 15 Nov 1982 02:59:08 +0000 (-0800) Subject: make overstriking work X-Git-Tag: BSD-4_1c_2-Snapshot-Development~1845 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/39f5fe562b856ed64187aa994c03fe1304a96630 make overstriking work SCCS-vsn: local/local.cmd/cpr.c 1.8 --- diff --git a/usr/src/local/local.cmd/cpr.c b/usr/src/local/local.cmd/cpr.c index 959b0fc5c3..81eae98227 100644 --- a/usr/src/local/local.cmd/cpr.c +++ b/usr/src/local/local.cmd/cpr.c @@ -2,7 +2,7 @@ # include # include -static char SccsId[] = "@(#)cpr.c 1.7 %G%"; +static char SccsId[] = "@(#)cpr.c 1.8 %G%"; /* ** CPR -- print on concept 108 @@ -18,6 +18,8 @@ static char SccsId[] = "@(#)cpr.c 1.7 %G%"; ** -f form feed following to print. */ +#define LINELEN 132 /* carriage width */ + typedef char bool; #define TRUE 1 #define FALSE 0 @@ -85,11 +87,6 @@ main(argc, argv) copyfile() { - char buf[200]; - register char *p; - extern char *index(); - - while (fgets(buf, sizeof buf, stdin) != NULL) { p = index(buf, '\n'); if (p == NULL)