diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-07 17:35:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-08-07 17:35:59 +0000 |
commit | d979bd14657315932ad5c6e70bcb81b039f10687 (patch) | |
tree | 60394dc8817ecf596754dc607826c70d3250ab66 /lib/libc/stdio/fputs.c | |
parent | 25514829491ab4fdeb7a1818a8ce14e1f56e2b61 (diff) |
If fread() returns EBADF, also set the error flag; tobez@plab.ku.dk
Diffstat (limited to 'lib/libc/stdio/fputs.c')
-rw-r--r-- | lib/libc/stdio/fputs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/fputs.c b/lib/libc/stdio/fputs.c index b6d61573013..a7a1367ebc8 100644 --- a/lib/libc/stdio/fputs.c +++ b/lib/libc/stdio/fputs.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: fputs.c,v 1.2 1996/08/19 08:32:43 tholo Exp $"; +static char rcsid[] = "$OpenBSD: fputs.c,v 1.3 1999/08/07 17:35:58 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -45,6 +45,7 @@ static char rcsid[] = "$OpenBSD: fputs.c,v 1.2 1996/08/19 08:32:43 tholo Exp $"; /* * Write the given string to the given file. */ +int fputs(s, fp) const char *s; FILE *fp; |