ungetc() — push character back into input stream
int ungetc(int c, FILE *stream);
int ungetc_unlocked(int c, FILE *stream);
inserts the character
(converted to an unsigned char)
into the buffer associated with an input
is returned by the next call to
A successful intervening call to a file positioning function with
erases all memory of the inserted characters.
affects only the buffer associated with the input
It does not affect the contents of the file corresponding to
One character of pushback is guaranteed.
does nothing to the buffer and returns EOF.
pushes character back into input stream.
is applied to a stream, the stream becomes byte-oriented (see
and clear the end-of-file indicator for the stream.
if they cannot insert the character.
is an obsolescent interface supported only for compatibility with
existing DCE applications. New multithreaded applications should use
ungetc(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1, ANSI C