Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ungetc(3S) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getc(3s)

setbuf(3s)

fseek(3s)



UNGETC(3S)              COMMAND REFERENCE              UNGETC(3S)



NAME
     ungetc - push character back into input stream

SYNOPSIS
     #include <stdio.h>

     ungetc(c, stream)
     FILE *stream;

DESCRIPTION
     Ungetc pushes the character c back on an input stream.  That
     character will be returned by the next getc call on that
     stream.  Ungetc returns c.

     One character of pushback is guaranteed provided something
     has been read from the stream and the stream is actually
     buffered.  Attempts to push EOF are rejected.

     Fseek(3s) erases all memory of pushed back characters.

DIAGNOSTICS
     Ungetc returns EOF if it cannot push a character back.

SEE ALSO
     getc(3s), setbuf(3s), fseek(3s).






























Printed 10/17/86                                                1





































































%%index%%
na:72,82;
sy:154,395;
de:549,628;
di:1177,193;
se:1370,158;
%%index%%000000000093

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