Module Name: src
Committed By: jruoho
Date: Thu May 13 18:38:24 UTC 2010
Modified Files:
src/lib/libc/stdio: fgets.3
Log Message:
Remove the note about the standard recommending fgets(3);
should be clear enough from the big warning to "NEVER use gets()".
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/stdio/fgets.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdio/fgets.3
diff -u src/lib/libc/stdio/fgets.3:1.21 src/lib/libc/stdio/fgets.3:1.22
--- src/lib/libc/stdio/fgets.3:1.21 Fri Apr 30 06:54:16 2010
+++ src/lib/libc/stdio/fgets.3 Thu May 13 18:38:24 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: fgets.3,v 1.21 2010/04/30 06:54:16 wiz Exp $
+.\" $NetBSD: fgets.3,v 1.22 2010/05/13 18:38:24 jruoho Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,7 +33,7 @@
.\"
.\" @(#)fgets.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd April 30, 2010
+.Dd May 13, 2010
.Dt FGETS 3
.Os
.Sh NAME
@@ -140,9 +140,7 @@
.St -p1003.1-2008
revision marked
.Fn gets
-as obsolescent, recommending the use of
-.Fn fgets
-instead.
+as obsolescent.
.Sh CAVEATS
The following bit of code illustrates a case where the programmer assumes a
string is too long if it does not contain a newline: