getwchar

getwchar

Defined in header <wchar.h>
wint_t getwchar(void);
(since C95)

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.

References

  • C11 standard (ISO/IEC 9899:2011):
    • 7.29.3.7 The getwchar function (p: 424)
  • C99 standard (ISO/IEC 9899:1999):
    • 7.24.3.7 The getwchar function (p: 369-370)

See also

reads a character from stdin
(function)
(C95)
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.
http://en.cppreference.com/w/c/io/getwchar

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部