Writes a wide character ch to the given output stream stream.
2) May be implemented as a macro and may evaluate stream more than once.
[edit] Parameters ch - wide character to be written stream - the output stream [edit] Return valueReturns a copy of ch on success.
On failure, returns WEOF and sets the error indicator (see ferror()) on stream.
If an encoding error occurred, additionally sets errno to EILSEQ.
[edit] Example#include <errno.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> #include <wchar.h> int main(void) { setlocale(LC_ALL, "en_US.utf8"); errno = 0; if (fputwc(L'ð', stdout) == WEOF) { if (errno == EILSEQ) puts("Encoding error in fputwc."); else puts("I/O error in fputwc."); return EXIT_FAILURE; } }
Possible output:
[edit] ReferencesRetroSearch 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