Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 2.76 KB

putch-nolock-putwch-nolock.md

File metadata and controls

69 lines (49 loc) · 2.76 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: _putch_nolock, _putwch_nolock
_putch_nolock, _putwch_nolock
4/2/2020
_putwch_nolock
_putch_nolock
_o__putch_nolock
_o__putwch_nolock
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-conio-l1-1-0.dll
DLLExport
apiref
_putch_nolock
_puttch_nolock
putch_nolock
putwch_nolock
_putwch_nolock
putwch_nolock function
puttch_nolock function
characters, writing
putch_nolock function
_putch_nolock function
_puttch_nolock function
console, writing characters to
_putwch_nolock function
edbc811d-bac6-47fa-a872-fe4f3a1590b0

_putch_nolock, _putwch_nolock

Writes a character to the console without locking the thread.

Important

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.

Syntax

int _putch_nolock(
int c
);
wint_t _putwch_nolock(
wchar_t c
);

Parameters

c
Character to be output.

Return value

Returns c if successful. If _putch_nolock fails, it returns EOF; if _putwch_nolock fails, it returns WEOF.

Remarks

_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.

Generic-text routine mappings

Tchar.h routine _UNICODE and _MBCS not defined _MBCS defined _UNICODE defined
_puttch_nolock _putch_nolock _putch_nolock _putwch_nolock

Requirements

Routine Required header
_putch_nolock <conio.h>
_putwch_nolock <conio.h>

For more compatibility information, see Compatibility.

Libraries

All versions of the C run-time libraries.

See also

Console and port I/O
_cprintf, _cprintf_l, _cwprintf, _cwprintf_l
_getch, _getwch