Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/io/c/getwchar"

From cppreference.com
< cpp‎ | io‎ | c
(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 {{c|WEOF}} if an error has occurred or the end of file reached
+
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}}
  
[[de:cpp/io/c/getwchar]]
+
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}
[[es:cpp/io/c/getwchar]]
+
[[fr:cpp/io/c/getwchar]]
+
[[it:cpp/io/c/getwchar]]
+
[[ja:cpp/io/c/getwchar]]
+
[[pt:cpp/io/c/getwchar]]
+
[[ru:cpp/io/c/getwchar]]
+
[[zh:cpp/io/c/getwchar]]
+

Latest revision as of 15:23, 29 November 2022

 
 
 
C-style I/O
Types and objects
Functions
File access
Direct input/output
Unformatted input/output
Formatted input
(C++11)(C++11)(C++11)    
(C++11)(C++11)(C++11)    
 
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) [edit]
gets a wide character from a file stream
(function) [edit]
C documentation for getwchar