UNGETWC(3) BSD Programmer's Manual UNGETWC(3)NAMEungetwc - push wide-character code back onto an input stream
SYNOPSIS
#include <stdio.h>
#include <wcahr.h>
wint_t
ungetwc(wint_t wc, FILE *stream);
DESCRIPTION
The ungetwc function is the same as fungetrune(3) with the exception that
it returns WEOF on error and wc on success.
RETURN VALUES
The ungetwc function returns wc on success. On error it returns WEOF and
set the global value errno to indicate the error.
SEE ALSOungetrune(3)BSDI BSD/OS December 9, 1997 1