📄 ungetc.3s
字号:
.\" SCCSID: @(#)ungetc.3s 8.1 9/11/90.TH ungetc 3s .SH Nameungetc \- push character back into input stream.SH Syntax.B #include <stdio.h>.PP.B ungetc\^(\fIc, stream\fP).br.B FILE \fI*stream\fP;.SH Description.NXR "ungetc subroutine".NXR "stream" "pushing character back"The.PN ungetcroutine pushes the character \fIc\fP back on an input stream. That characterwill be returned by the next.PN getccall on that stream. The.PN ungetc routine returns \fIc\fP. One character of pushback is guaranteed in all cases..PPThe.MS fseek 3sroutine erases all memory of pushed back characters..SH DiagnosticsThe.PN ungetcroutine returns EOFif it cannot push a character back..SH EnvironmentIn POSIX mode, the file's EOF indicator is cleared..SH See Alsofseek(3s), getc(3s), setbuf(3s)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -