|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Write a character to the console.
int _putch( int c ); wint_t _putwch( wchar_t c );
- Character to be output.
Returns c if successful. If _putch fails, it returns EOF; if _putwch fails, it returns WEOF.
These functions write the character c directly, without buffering, to the console. In Windows NT, _putwch writes Unicode characters using the current console locale setting.
Generic-Text Routine Mappings
|TCHAR.H routine||_UNICODE & _MBCS not defined||_MBCS defined||_UNICODE defined|
|_putch||<conio.h>||Win 98, Win Me, Win NT, Win 2000, Win XP|
|_putwch||<conio.h>||Win 98, Win Me, Win NT, Win 2000, Win XP|
For additional compatibility information, see Compatibility.
All versions of the C run-time libraries.
See the example for _getch.