_putch_nolock
, _putwch_nolock
Writes a character to the console without locking.
Важно
This API cannot be used in applications that execute in the Windows Runtime. For more information, see CRT functions not supported in Universal Windows Platform apps.
int _putch_nolock(
int c
);
wint_t _putwch_nolock(
wchar_t c
);
c
Character to be output.
Returns c
if successful. If _putch_nolock
fails, it returns EOF
; if _putwch_nolock
fails, it returns WEOF
.
_putch_nolock
and _putwch_nolock
are identical to _putch
and _putwch
, respectively, except that they aren't protected from interference by other threads. They might be faster because they don't incur the overhead of locking out other threads. Use these functions only in thread-safe contexts such as single-threaded applications or where the calling scope already handles thread isolation.
By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.
Tchar.h routine | _UNICODE and _MBCS not defined |
_MBCS defined |
_UNICODE defined |
---|---|---|---|
_puttch_nolock |
_putch_nolock |
_putch_nolock |
_putwch_nolock |
Routine | Required header |
---|---|
_putch_nolock |
<conio.h> |
_putwch_nolock |
<conio.h> |
For more compatibility information, see Compatibility.
All versions of the C run-time libraries.
Console and port I/O
_cprintf
, _cprintf_l
, _cwprintf
, _cwprintf_l
_getch
, _getwch