ungetc.3s

来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 3S 代码 · 共 39 行

3S
39
字号
.TH UNGETC 3S .SH NAMEungetc \- 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 Ungetcpushes the character.I cback on an input stream.That character will be returned by the next.I getccall on that stream..I Ungetc returns .IR c ..PPOne character of pushback is guaranteed providedsomething has been read from the stream and the stream isactually 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 Ungetcreturns.SM.B EOFif it can't push a character back.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?