Module Name: src Committed By: jruoho Date: Fri Apr 30 06:00:14 UTC 2010
Modified Files: src/lib/libc/stdio: fgets.3 Log Message: They've finally made gets(3) obsolete (in POSIX, at least). To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 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.19 src/lib/libc/stdio/fgets.3:1.20 --- src/lib/libc/stdio/fgets.3:1.19 Tue Dec 9 21:40:54 2003 +++ src/lib/libc/stdio/fgets.3 Fri Apr 30 06:00:14 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: fgets.3,v 1.19 2003/12/09 21:40:54 grant Exp $ +.\" $NetBSD: fgets.3,v 1.20 2010/04/30 06:00:14 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 June 4, 1993 +.Dd April 30, 2010 .Dt FGETS 3 .Os .Sh NAME @@ -133,7 +133,16 @@ and .Fn gets conform to -.St -ansiC . +.St -ansiC +and +.St -p1003.1-2001 . +The +.St -p1003.1-2008 +revision marked +.Fn gets +as obsolescent, recommending the use of +.Fn fgets +instead. .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: