summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getc.3
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-04-20 01:39:31 +0000
committeraaron <aaron@openbsd.org>2000-04-20 01:39:31 +0000
commitaa86bf2d6802741b82abbadd8b93f15e93018443 (patch)
tree51ed78b35a0b80645fd9da45de68dca44508f8b8 /lib/libc/stdio/getc.3
parentRemove NetBSD ifdefs here too. (diff)
downloadwireguard-openbsd-aa86bf2d6802741b82abbadd8b93f15e93018443.tar.xz
wireguard-openbsd-aa86bf2d6802741b82abbadd8b93f15e93018443.zip
Flesh out all of the stdio man pages.
Diffstat (limited to 'lib/libc/stdio/getc.3')
-rw-r--r--lib/libc/stdio/getc.322
1 files changed, 8 insertions, 14 deletions
diff --git a/lib/libc/stdio/getc.3 b/lib/libc/stdio/getc.3
index e5a065418d9..debba67a6e4 100644
--- a/lib/libc/stdio/getc.3
+++ b/lib/libc/stdio/getc.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getc.3,v 1.5 1999/05/25 01:50:58 aaron Exp $
+.\" $OpenBSD: getc.3,v 1.6 2000/04/20 01:39:32 aaron Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -65,32 +65,27 @@ or the next character pushed back on the stream via
.Pp
The
.Fn getc
-function
-acts essentially identically to
+function acts essentially identically to
.Fn fgetc ,
but is a macro that expands in-line.
.Pp
The
.Fn getchar
-function
-is equivalent to
+function is equivalent to
.Fn getc
with the argument stdin.
.Pp
The
.Fn getw
-function
-obtains the next
-.Em int
+function obtains the next
+.Li int
(if present)
from the stream pointed at by
.Fa stream .
.Sh RETURN VALUES
-If successful, these routines return the next requested object
-from the
+If successful, these routines return the next requested object from the
.Fa stream .
-If the stream is at end-of-file or a read error occurs,
-the routines return
+If the stream is at end-of-file or a read error occurs, the routines return
.Dv EOF .
The routines
.Xr feof 3
@@ -114,7 +109,7 @@ until the condition is cleared with
.Sh STANDARDS
The
.Fn fgetc ,
-.Fn getc
+.Fn getc ,
and
.Fn getchar
functions
@@ -134,4 +129,3 @@ The size and byte order of an
varies from one machine to another, and
.Fn getw
is not recommended for portable applications.
-.Pp