ferror.3s

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3S 代码 · 共 73 行

3S
73
字号
.\" SCCSID: @(#)ferror.3s	2.1	3/10/87.TH ferror 3s .SH Nameferror, feof, clearerr, fileno \- stream status inquiries.SH Syntax.B #include <stdio.h>.PP.B feof(stream).br.SM.B FILE.B *stream;.PP.B ferror(stream).br.SM.B FILE.B *stream.PP.B void clearerr(stream).br.SM.B FILE.B *stream.PP.B fileno(stream).br.SM.B FILE.B *stream;.SH Description.NXR "ferror subroutine".NXR "feof subroutine".NXR "clearerr subroutine".NXR "fileno subroutine".NXR "stream" "status queries"The.PN ferrorfunction returns nonzero when an error has occurred reading or writing the named.IR stream ,otherwise zero.Unless cleared by.PN clearerr ,the error indication lasts untilthe stream is closed..PPThe.PN feoffunction returns nonzero when end of file is read on the named input.IR stream ,otherwise zero..PPThe.PN clearerrfunction resets both the error and EOFindicators on the named.IR stream ..PPThe.PN filenofunction returns the integer file descriptorassociated with the.IR stream ,see.MS open 2 ..PPThese functionsare implemented as macros;they cannot be redeclared..SH See Alsoopen(2), fopen(3s)

⌨️ 快捷键说明

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