Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
ungetwc(3)
Edit
PageHistory
Diff
Info
LikePages
UNGETWC !!!UNGETWC NAME SYNOPSIS DESCRIPTION RETURN VALUE CONFORMING TO SEE ALSO NOTES ---- !!NAME ungetwc - push back a wide character onto a FILE stream !!SYNOPSIS __#include __ ''wc''__, FILE *__''stream''__); __ !!DESCRIPTION The __ungetwc__ function is the wide-character equivalent of the __ungetc__ function. It pushes back a wide character onto ''stream'' and returns it. If ''wc'' is WEOF, it returns WEOF. If ''wc'' is an invalid wide character, it sets __errno__ to __EILSEQ__ and returns WEOF. If ''wc'' is a valid wide character, it is pushed back onto the stream and thus becomes available for future wide character read operations. The file-position indicator is decremented by one or more. The end-of-file indicator is cleared. The backing storage of the file is not affected. Note: ''wc'' need not be the last wide character read from the stream; it can be any other valid wide character. If the implementation supports multiple push-back operations in a row, the pushed-back wide characters will be read in reverse order; however, only one level of push-back is guaranteed. !!RETURN VALUE The __ungetwc__ function returns ''wc'' when successful, or WEOF upon failure. !!CONFORMING TO ISO/ANSI C, UNIX98 !!SEE ALSO fgetwc(3) !!NOTES The behaviour of __ungetwc__ depends on the LC_CTYPE category of the current locale. ----
3 pages link to
ungetwc(3)
:
Man3u
fgetwc(3)
getwc(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.