Remove the note about the standard recommending fgets(3);
should be clear enough from the big warning to "NEVER use gets()".
This commit is contained in:
parent
35af00ec31
commit
f05bdd5ecd
@ -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 @@ The
|
||||
.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:
|
||||
|
Loading…
Reference in New Issue
Block a user