projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a macro for STRPLACE, just like STROFF
[unix-history]
/
usr
/
src
/
old
/
gets
/
gets.c
diff --git
a/usr/src/old/gets/gets.c
b/usr/src/old/gets/gets.c
index
f07a1b9
..
113d8fe
100644
(file)
--- a/
usr/src/old/gets/gets.c
+++ b/
usr/src/old/gets/gets.c
@@
-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);