COHERENT manpages
This page displays the COHERENT manpage for ungetc() [Return character to input stream].
List of available manpages
Index
ungetc() -- STDIO Function (libc) Return character to input stream #include <stdio.h> int ungetc (c, fp) int c; FILE *fp; ungetc() returns the character c to the stream fp. c can then be read by a subsequent call to getc(), gets(), getw(), scanf(), or fread(). No more than one character can be pushed back into any stream at once. A call to fseek() will nullify the effects of a previous ungetc(). ungetc() normally returns c. It returns EOF if the character cannot be pushed back. Example For an example of this function, see fgetc(). See Also fgetc(), getc(), libc ANSI Standard, §7.9.7.11 POSIX Standard, §8.1