Add a macro for STRPLACE, just like STROFF
[unix-history] / usr / src / old / gets / gets.c
index f07a1b9..113d8fe 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)gets.c      4.1 (Berkeley) %G%";
+static char *sccsid = "@(#)gets.c      4.2 (Berkeley) %G%";
 #include <stdio.h>
 
 /*
 #include <stdio.h>
 
 /*
@@ -14,6 +14,7 @@ main(argc, argv)
 {
        char buf[BUFSIZ];
        
 {
        char buf[BUFSIZ];
        
+       setbuf(stdin, NULL);
        if (gets(buf) == NULL || buf[0] < ' ') {
                if (argc == 1)
                        exit(1);
        if (gets(buf) == NULL || buf[0] < ' ') {
                if (argc == 1)
                        exit(1);