getchar.3
来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 3 代码 · 共 32 行
3
32 行
.th GETCHAR III 4/7/73.sh NAMEgetchar \*- read character.sh SYNOPSIS.ft Bgetchar( ).br.ft R.sh DESCRIPTION.it Getcharprovides the simplest means of reading characters fromthe standard input for C programs.It returns successive characters until end-of-file,when it returns ``\\0''..s3Associated with this routine is an external variablecalled \fIfin\fR, which is a structure containinga buffer such as described under \fIgetc\fR (III)..s3Generally speaking,.it getcharshould be used only for the simplest applications;.it getcis better when there are multiple input files..sh "SEE ALSO"getc (III).sh DIAGNOSTICSNull character returned on EOF or error..sh BUGS\*-1 should bereturned on EOF; null is a legitimate character.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?