Previous Page
Next Page

ungetwc

Pushes a wide character back onto a file buffer to be read next

#include <stdio.h>
#include <wchar.h>
wint_t ungetwc ( wint_t wc , FILE *fp  );

The ungetwc( ) function is the wide-character version of ungetc( ), and works analogously, returning WEOF on failure or the wide character pushed back onto the file buffer if successful.

Example

See the example for the corresponding byte-character function, ungetc( ).

See Also

getwc( ), getc( )


Previous Page
Next Page