From cfad593dbda53a8925e9adf0159cbb384c3897f6 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Wed, 15 May 2002 16:55:58 +0000 Subject: 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 --- lib/libc/stdio/getc.3 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libc') diff --git a/lib/libc/stdio/getc.3 b/lib/libc/stdio/getc.3 index 7b81b6b9b8c8..daae84c8539c 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 . -- cgit v1.2.3