Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio Remove the note about the standard recommendi...



details:   https://anonhg.NetBSD.org/src/rev/66e518c70419
branches:  trunk
changeset: 754810:66e518c70419
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu May 13 18:38:24 2010 +0000

description:
Remove the note about the standard recommending fgets(3);
should be clear enough from the big warning to "NEVER use gets()".

diffstat:

 lib/libc/stdio/fgets.3 |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r f97f213c9504 -r 66e518c70419 lib/libc/stdio/fgets.3
--- a/lib/libc/stdio/fgets.3    Thu May 13 18:21:32 2010 +0000
+++ b/lib/libc/stdio/fgets.3    Thu May 13 18:38:24 2010 +0000
@@ -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:



Home | Main Index | Thread Index | Old Index