From aa86bf2d6802741b82abbadd8b93f15e93018443 Mon Sep 17 00:00:00 2001 From: aaron Date: Thu, 20 Apr 2000 01:39:31 +0000 Subject: Flesh out all of the stdio man pages. --- lib/libc/stdio/getc.3 | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'lib/libc/stdio/getc.3') 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 -- cgit v1.2.3-59-g8ed1b