feof.c
来自「用于嵌入式Linux系统的标准C的库函数」· C语言 代码 · 共 45 行
C
45 行
/*FUNCTION<<feof>>---test for end of fileINDEX feofANSI_SYNOPSIS #include <stdio.h> int feof(FILE *<[fp]>);TRAD_SYNOPSIS #include <stdio.h> int feof(<[fp]>) FILE *<[fp]>;DESCRIPTION<<feof>> tests whether or not the end of the file identified by <[fp]>has been reached.RETURNS<<feof>> returns <<0>> if the end of file has not yet been reached; ifat end of file, the result is nonzero.PORTABILITY<<feof>> is required by ANSI C.No supporting OS subroutines are required.*/#include <stdio.h>#undef feofint _DEFUN (feof, (fp), FILE * fp){ int result; _flockfile(fp); result = __sfeof (fp); _funlockfile(fp); return result;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?