getc reads a single character from a stream and increments the associated file pointer to point to the next character; getchar reads from stdin.
#include <stdio.h> int getc(FILE *stream); int getchar(void);
#include <wchar.h>
wint_t getwc(FILE *stream);
wint_t getwchar(void);
stream
Getc and getchar are identical to fgetc and fgetchar, but are macros rather than functions.
The getchar macro is identical to:
getc(stdin)
getwc and wgetchar are wide-character versions of getc and getchar.
tchar.h routine |
_UNICODE not defined |
_UNICODE defined |
---|---|---|
_gettc | getc | getwc |
_gettchar | getchar | getwchar |
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 INtime 6.0 (for wide-character and generic text versions) |
intime/rt/include/stdio.h intime/rt/include/wchar.h intime/rt/include/tchar.h |
stdio.h wchar.h tchar.h |
clib.lib |