make overstriking work
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 15 Nov 1982 02:59:08 +0000 (18:59 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 15 Nov 1982 02:59:08 +0000 (18:59 -0800)
SCCS-vsn: local/local.cmd/cpr.c 1.8

usr/src/local/local.cmd/cpr.c

index 959b0fc..81eae98 100644 (file)
@@ -2,7 +2,7 @@
 # include <sgtty.h>
 # include <signal.h>
 
 # include <sgtty.h>
 # include <signal.h>
 
-static char    SccsId[] =      "@(#)cpr.c      1.7             %G%";
+static char    SccsId[] =      "@(#)cpr.c      1.8             %G%";
 
 /*
 **  CPR -- print on concept 108
 
 /*
 **  CPR -- print on concept 108
@@ -18,6 +18,8 @@ static char   SccsId[] =      "@(#)cpr.c      1.7             %G%";
 **             -f      form feed following to print.
 */
 
 **             -f      form feed following to print.
 */
 
+#define LINELEN        132                     /* carriage width */
+
 typedef char   bool;
 #define TRUE   1
 #define FALSE  0
 typedef char   bool;
 #define TRUE   1
 #define FALSE  0
@@ -85,11 +87,6 @@ main(argc, argv)
 
 copyfile()
 {
 
 copyfile()
 {
-       char buf[200];
-       register char *p;
-       extern char *index();
-
-       while (fgets(buf, sizeof buf, stdin) != NULL)
        {
                p = index(buf, '\n');
                if (p == NULL)
        {
                p = index(buf, '\n');
                if (p == NULL)