W3cubDocs

/C++

std::getwchar

Defined in header <cwchar>
std::wint_t getwchar();

Reads the next wide character from stdin.

Parameters

(none).

Return value

The obtained wide character, or WEOF if an error has occurred or the end of file reached.

See also

reads a character from stdin
(function)
gets a wide character from a file stream
(function)
C documentation for getwchar

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/c/getwchar