ungetc.3
来自「Unix操作系统minix 2.0源码」· 3 代码 · 共 42 行
3
42 行
.\" @(#)ungetc.3s 6.1 (Berkeley) 5/15/85.\".TH UNGETC 3 "May 15, 1985".AT 3.SH NAMEungetc \- push character back into input stream.SH SYNOPSIS.nf.ft B#include <stdio.h>int ungetc(int \fIc\fP, FILE *\fIstream\fP).ft R.fi.SH DESCRIPTION.B Ungetcpushes the character.I cback on an input stream. That character will be returned by the next.B getccall on that stream..B Ungetc returns .IR c ..PPOne character of pushback is guaranteed providedsomething has been read from the stream and the stream is actually buffered.Attempts to push EOF are rejected..PP.BR Fseek (3)erases all memory of pushed back characters..SH "SEE ALSO".BR getc (3),.BR setbuf (3),.BR fseek (3)..SH DIAGNOSTICS.B Ungetcreturns.SM.B EOFif it can't push a character back.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?