Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


ungetc()                      STDIO                      ungetc()




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 un-
getc.

***** Example *****

For an example of this function, see fgetc.

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

fgetc(), getc(), STDIO

***** Diagnostics *****

ungetc normally returns c.   It returns EOF if the character can-
not be pushed back.

































COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026