BSD 4_3 release
[unix-history] / usr / src / ucb / fold.c
index 65212fb..f56c7fa 100644 (file)
@@ -1,4 +1,19 @@
-static char *sccsid = "@(#)fold.c      4.2 (Berkeley) 2/9/83";
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
+#ifndef lint
+static char sccsid[] = "@(#)fold.c     5.1 (Berkeley) 5/31/85";
+#endif not lint
+
 #include <stdio.h>
 /*
  * fold - fold long lines for finite output devices
 #include <stdio.h>
 /*
  * fold - fold long lines for finite output devices
@@ -14,10 +29,8 @@ main(argc, argv)
 {
        register c;
        FILE *f;
 {
        register c;
        FILE *f;
-       char obuf[BUFSIZ];
 
        argc--, argv++;
 
        argc--, argv++;
-       setbuf(stdout, obuf);
        if (argc > 0 && argv[0][0] == '-') {
                fold = 0;
                argv[0]++;
        if (argc > 0 && argv[0][0] == '-') {
                fold = 0;
                argv[0]++;