

ungetc()                      STDIO                      ungetc()




Return character to input stream

#include <stdio.h>
iinntt uunnggeettcc (_c, _f_p) iinntt _c; FFIILLEE *_f_p;

ungetc returns the  character _c to the stream _f_p.   c can then be
read by  a subsequent call to ggeettcc, ggeettss,  ggeettww, ssccaannff, or ffrreeaadd.
No more than one character can  be pushed back into any stream at
once.  A call to ffsseeeekk will nullify the effects of a previous uunn-
ggeettcc.

***** Example *****

For an example of this function, see fgetc.

***** See Also *****

fgetc(), getc(), STDIO

***** Diagnostics *****

uunnggeettcc normally returns _c.   It returns EEOOFF if the character can-
not be pushed back.

































COHERENT Lexicon                                           Page 1


