| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/conio/ |
Upload File : |
//
// putwch.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines _putwch(), which writes a wide character to the console.
//
#include <conio.h>
#include <corecrt_internal_lowio.h>
// Writes a wide character to the console. Returns the character on success,
// WEOF on failure.
extern "C" wint_t __cdecl _putwch(wchar_t const c)
{
return __acrt_lock_and_call(__acrt_conio_lock, [&]
{
return _putwch_nolock(c);
});
}
extern "C" wint_t __cdecl _putwch_nolock(wchar_t const c)
{
if (__dcrt_lowio_ensure_console_output_initialized() == FALSE)
return WEOF;
// Write character to console:
DWORD charsWritten;
if (__dcrt_write_console(&c, 1, &charsWritten) == FALSE)
return WEOF;
return c;
}