summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getc.3
diff options
context:
space:
mode:
authorfanf <fanf@FreeBSD.org>2002-05-15 16:55:58 +0000
committerfanf <fanf@FreeBSD.org>2002-05-15 16:55:58 +0000
commit578642c9319b6b4715148ec2b239499d4b9ffac3 (patch)
tree484d3c5d6256335990845ef1ff95f21a3db0e797 /lib/libc/stdio/getc.3
parent3609bfaab718be83c9ce188db03849cc3e662681 (diff)
downloadFreeBSD-src-578642c9319b6b4715148ec2b239499d4b9ffac3.zip
FreeBSD-src-578642c9319b6b4715148ec2b239499d4b9ffac3.tar.gz
Clarify that the value of getc() etc. is an unsigned char converted
to an int (as per the C standard) i.e. it can be passed straight to isalpha() etc. Approved by: dwmalone (mentor) MFC after: 3 days
Diffstat (limited to 'lib/libc/stdio/getc.3')
-rw-r--r--lib/libc/stdio/getc.34
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/getc.3 b/lib/libc/stdio/getc.3
index 7b81b6b..daae84c 100644
--- a/lib/libc/stdio/getc.3
+++ b/lib/libc/stdio/getc.3
@@ -91,6 +91,10 @@ from the stream pointed at by
If successful, these routines return the next requested object
from the
.Fa stream .
+Character values are returned as an
+.Li unsigned char
+converted to an
+.Li int .
If the stream is at end-of-file or a read error occurs,
the routines return
.Dv EOF .
OpenPOWER on IntegriCloud