📄 ferror.3
字号:
.\" Copyright (c) 1980 Regents of the University of California..\" All rights reserved. The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\" @(#)ferror.3s 6.3 (Berkeley) 5/14/86.\".TH FERROR 3 "May 14, 1986".UC 4.SH NAMEferror, feof, clearerr, fileno \- stream status inquiries.SH SYNOPSIS.nf.ft B#include <stdio.h>int feof(FILE *\fIstream\fP)int ferror(FILE *\fIstream\fP)int clearerr(FILE *\fIstream\fP)int fileno(FILE *\fIstream\fP).ft R.fi.SH DESCRIPTION.B Feofreturns non-zero when end of file is read on the named input.IR stream ,otherwise zero.Unless cleared by.BR clearerr ,the end-of-file indication lasts untilthe stream is closed..PP.B Ferrorreturns non-zero when an error has occurred reading or writingthe named.IR stream ,otherwise zero.Unless cleared by.BR clearerr ,the error indication lasts untilthe stream is closed..PP.B Clearerrresets the error and end-of-file indicators on the named.IR stream ..PP.B Filenoreturns the integer file descriptorassociated with the.IR stream ,see.BR open (2)..PPCurrently all of these functionsare implemented as macros;they cannot be redeclared..SH "SEE ALSO".BR fopen (3),.BR open (2).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -