Difference between revisions of "cpp/io/c/getwchar"
From cppreference.com
(typo) |
m (→Synopsis: +std) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{cpp/title| getwchar}} | + | {{cpp/title|getwchar}} |
{{cpp/io/c/navbar}} | {{cpp/io/c/navbar}} | ||
− | {{ddcl | header=cwchar | | + | {{ddcl|header=cwchar| |
− | wint_t getwchar(); | + | std::wint_t getwchar(); |
}} | }} | ||
Reads the next wide character from {{lc|stdin}}. | Reads the next wide character from {{lc|stdin}}. | ||
Line 10: | Line 10: | ||
===Return value=== | ===Return value=== | ||
− | The obtained wide character or {{ | + | The obtained wide character, or {{lc|WEOF}} if an error has occurred or the end of file reached |
===See also=== | ===See also=== | ||
{{dsc begin}} | {{dsc begin}} | ||
− | {{dsc inc | cpp/io/c/dsc getchar}} | + | {{dsc inc|cpp/io/c/dsc getchar}} |
− | {{dsc inc | cpp/io/c/dsc fgetwc}} | + | {{dsc inc|cpp/io/c/dsc fgetwc}} |
− | {{dsc see c | c/io/getwchar}} | + | {{dsc see c|c/io/getwchar}} |
{{dsc end}} | {{dsc end}} | ||
− | + | {{langlinks|de|es|fr|it|ja|pt|ru|zh}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 15:23, 29 November 2022
Defined in header <cwchar>
|
||
std::wint_t getwchar(); |
||
Reads the next wide character from stdin.
[edit] Parameters
(none)
[edit] Return value
The obtained wide character, or WEOF if an error has occurred or the end of file reached
[edit] See also
reads a character from stdin (function) | |
gets a wide character from a file stream (function) | |
C documentation for getwchar
|