NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RETURN VALUES
$(OS_DIR)/lib/libc.a #include <stdio.h>int getchar(void);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
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 | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RETURN VALUES