Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
fgetwc(3)
Edit
PageHistory
Diff
Info
LikePages
FGETWC !!!FGETWC NAME SYNOPSIS DESCRIPTION RETURN VALUE ERRORS CONFORMING TO SEE ALSO NOTES ---- !!NAME fgetwc - read a wide character from a FILE stream !!SYNOPSIS __#include __ ''stream''__); wint_t getwc (FILE*__ ''stream''__); __ !!DESCRIPTION The __fgetwc__ function is the wide-character equivalent of the __fgetc__ function. It reads a wide character from ''stream'' and returns it. If the end of stream is reached, or if ''ferror(stream)'' becomes true, it returns WEOF. If a wide character conversion error occurs, it sets __errno__ to __EILSEQ__ and returns WEOF. The __getwc__ function or macro functions identically to __fgetwc__. It may be implemented as a macro, and may evaluate its argument more than once. There is no reason ever to use it. !!RETURN VALUE The __fgetwc__ function returns the next wide-character from the stream, or WEOF. !!ERRORS Apart from the usual ones, there is __EILSEQ__ The data obtained from the input stream does not form a valid character. !!CONFORMING TO ISO/ANSI C, UNIX98 !!SEE ALSO fputwc(3), fgetws(3), ungetwc(3) !!NOTES The behaviour of __fgetwc__ depends on the LC_CTYPE category of the current locale. In the absence of additional information passed to the fopen call, it is reasonable to expect that __fgetwc__ will actually read a multibyte sequence from the stream and then convert it to a wide character. ----
6 pages link to
fgetwc(3)
:
Man3f
fgetws(3)
fputwc(3)
getwchar(3)
putwc(3)
ungetwc(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.