[−][src]Function avr_libc::ungetc
pub unsafe extern "C" fn ungetc(__c: i16, __stream: *mut FILE) -> i16
The ungetc() function pushes the character \c c (converted to an unsigned char) back onto the input stream pointed to by \c stream. The pushed-back character will be returned by a subsequent read on the stream.
Currently, only a single character can be pushed back onto the stream.
The ungetc() function returns the character pushed back after the conversion, or \c EOF if the operation fails. If the value of the argument \c c character equals \c EOF, the operation will fail and the stream will remain unchanged.