getchar, getwchar (Windows CE 5.0)
Developing an Application > Microsoft C Run-time Library for Windows CE > Run-time Library Reference
Read a character from stdin.
int getchar( void );wint_t getwchar( void );
Parameters
- stream
Input stream.
Return Values
Each function returns the character read.
To indicate an read error or end-of-file condition, getwc and getwchar return WEOF.
Remarks
Each routine reads a single character from a file at the current position and increments the associated file pointer (if defined) to point to the next character.
In the case of getwc, the file is associated with stream (see Choosing Between Functions and Macros).
Routine-specific remarks follow.
Routine | Remarks |
---|---|
getchar | Implemented as a function and as a macro. |
getwchar | Wide-character version of getchar.
Reads a multibyte character or a wide character according to whether stream is opened in text mode or binary mode. |
Generic-Text Routine Mappings
TCHAR.H Routine | _MBCS Defined | _UNICODE Defined |
---|---|---|
_gettc | getc | getwc |
_gettchar | getchar | getwchar |
For more information about TCHAR.H routines, see Generic Text Mappings.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: stdlib.h.
Link Library: coredll.dll.
See Also
Send Feedback on this topic to the authors