_putch, _putwch
Writes a character to the console.
int _putch( int c ); wint_t _putwch( wchar_t c );
Parameters
- c
-
Character to be output.
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.
The versions with the _nolock suffix are identical except that they are not protected from interference by other threads. For more information, see _putch_nolock, _putwch_nolock.
| Tchar.h routine | _UNICODE and _MBCS not defined | _MBCS defined | _UNICODE defined |
|---|---|---|---|
| _puttch | _putch | _putch | _putwch |
| Routine | Required header | Compatibility |
|---|---|---|
| _putch | <conio.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
| _putwch | <conio.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
For more compatibility information, see Compatibility.
Libraries
All versions of the C run-time libraries.