push character back onto input stream
int ungetc (int c, FILE stream);
inserts the character specified by
(converted to an unsigned char)
into the buffer associated with an input
will be returned by the next
call on that
and leaves the file corresponding to
A successful call to ungetc clears the
EOF indicator for stream.
The value of the file position indicator for stream after reading or
discarding all pushed-back characters will be the same as it was before
the characters were pushed back.
does nothing to the buffer and returns
fseek, rewind [both described on
erase the memory of inserted characters for the stream on which they are
if it cannot insert the character.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004