NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RETURN VALUES
#include <stdio.h>int getchar(void);
The getchar function returns the next character (byte) from the standard input channel, which is operating-system dependent. On systems where stdin, has a meaning, getc (3STDC) is part of the library, and getchar is a macro defined as getc(stdin).
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
This function returns the constant EOF at end-of-input (if the system supports this abstraction) or upon detecting an error.
NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RETURN VALUES