⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ungetc.3

📁 操作系统设计与实现源码
💻 3
字号:
.\"	@(#)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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -