DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦620253025⟧ TextFile

    Length: 780 (0x30c)
    Types: TextFile
    Notes: UNIX file
    Names: »ungetc.3s«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »usr/man/man3/ungetc.3s« 

TextFile

.ig
	@(#)ungetc.3s	2.1	7/1/84
	@(#)Copyright (C) 1983 by National Semiconductor Corp.
..
.TH UNGETC 3S 
.SH NAME
ungetc \- push character back into input stream
.SH SYNOPSIS
.B #include <stdio.h>
.PP
.B ungetc(c, stream)
.br
.SM
.B FILE
.B *stream;
.SH DESCRIPTION
.I Ungetc
pushes the character
.I c
back on an input stream.
That character will be returned by the next
.I getc
call on that stream.
.I Ungetc 
returns 
.IR c .
.PP
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.
.PP
.IR  Fseek (3)
erases all memory of pushed back characters.
.SH "SEE ALSO"
getc(3), setbuf(3), fseek(3)
.SH DIAGNOSTICS
.I Ungetc
returns
.SM
.B EOF
if it can't push a character back.