INtime SDK Help
getc, getchar, getwc, getwchar

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);

Parameters

stream
Pointer to FILE structure.

Remarks

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.

Return Values

The integer value of the character read.
Success.
EOF on error or end-of-file. Since EOF is a legal integer value, use feof or ferror to distinguish between an error and an end-of-file condition.
Failure.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_gettc getc getwc
_gettchar getchar getwchar

Requirements

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
   
See Also