summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fgets.3
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2013-07-17 05:42:10 +0000
committerschwarze <schwarze@openbsd.org>2013-07-17 05:42:10 +0000
commit23fbb714ee0d9e87b8c1fa165af1f555294785eb (patch)
tree248b04849e966acb09eff7ac5b30e5ad56bcc86c /lib/libc/stdio/fgets.3
parentEnable jfb-style acceleration on XVR-600. (diff)
downloadwireguard-openbsd-23fbb714ee0d9e87b8c1fa165af1f555294785eb.tar.xz
wireguard-openbsd-23fbb714ee0d9e87b8c1fa165af1f555294785eb.zip
more library history
facts checked by sobrado@ style tweaks and ok jmc@
Diffstat (limited to 'lib/libc/stdio/fgets.3')
-rw-r--r--lib/libc/stdio/fgets.311
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3
index 6b0365f2bbe..56d6a703148 100644
--- a/lib/libc/stdio/fgets.3
+++ b/lib/libc/stdio/fgets.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fgets.3,v 1.30 2013/06/05 03:39:23 tedu Exp $
+.\" $OpenBSD: fgets.3,v 1.31 2013/07/17 05:42:11 schwarze Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: July 17 2013 $
.Dt FGETS 3
.Os
.Sh NAME
@@ -148,6 +148,13 @@ and
.Fn gets
conform to
.St -ansiC .
+.Sh HISTORY
+The functions
+.Fn fgets
+and
+.Fn gets
+first appeared in
+.At v7 .
.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: