Writes a wide character ch to stdout.
[edit] Parameters ch - wide character to be written [edit] Return valuech on success, WEOF on failure.
[edit] Example#include <clocale> #include <cstdio> #include <cstdlib> #include <cwchar> #include <initializer_list> int main() { std::setlocale(LC_ALL, "en_US.utf8"); for (const wchar_t ch : { L'\u2200', // Unicode name: "FOR ALL" L'â', L'\n' }) if (std::putwchar(ch) == WEOF) { std::puts("I/O error in std::putwchar"); return EXIT_FAILURE; } return EXIT_SUCCESS; }
Possible output:
[edit] See alsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4