Penguin

Differences between current version and predecessor to the previous major change of feof(3).

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Wednesday, December 4, 2002 12:01:47 am by PerryLorier
Older page: version 1 Last edited on Tuesday, June 4, 2002 12:24:18 am by perry Revert
@@ -1,65 +1,20 @@
-FERROR  
-!!!FERROR  
-NAME  
-SYNOPSIS  
-DESCRIPTION  
-ERRORS  
-CONFORMING TO  
-SEE ALSO  
-----  
+  
 !!NAME 
  
-  
-clearerr, feof, ferror, fileno - check and reset stream status 
+feof - check and reset stream status, in particular, determine if the end is nigh.  
 !!SYNOPSIS 
  
  
-__#include __  
-  
-  
-__void clearerr( FILE *__''stream''__);  
- int feof( FILE *__''stream''__);  
-int ferror( FILE *__''stream''__);  
-int fileno ( FILE *__''stream''__);__ 
+ __#include <stdio.h> __  
+ __int feof( FILE *__''stream''__);__ 
 !!DESCRIPTION 
  
+The function feof(3) tests the end-of-file indicator for the stream pointed to by ''stream'', returning non-zero if it is set. The end-of-file indicator can only be cleared by the function clearerr(3).  
  
-The function __clearerr__ clears the end-of-file and  
-error indicators for the stream pointed to by  
-''stream''.  
-  
-  
-The function __feof__ tests the end-of-file indicator for  
-the stream pointed to by ''stream'', returning non-zero  
-if it is set. The end-of-file indicator can only be cleared  
-by the function __clearerr__.  
-  
-  
-The function __ferror__ tests the error indicator for the  
-stream pointed to by ''stream'', returning non-zero if it  
-is set. The error indicator can only be reset by the  
-__clearerr__ function.  
-  
-  
-The function __fileno__ examines the argument  
-''stream'' and returns its integer  
-descriptor.  
 !!ERRORS 
+These functions should not fail and do not set the external variable ''errno''.  
  
-  
-These functions should not fail and do not set the external  
-variable ''errno''. (However, in case __fileno__  
-detects that its argument is not a valid stream, it must  
-return -1 and set ''errno'' to  
-__EBADF__.)  
 !!CONFORMING TO 
-  
-  
- The functions __clearerr__, __ feof__, and  
-__ferror__ conform to X3.159-1989 (``ANSI  
- C''). 
+The function feof(3) conforms to X3.159-1989 (``ANSI C''). 
 !!SEE ALSO 
-  
-  
- open(2), stdio(3)  
-----  
+open(2), stdio(3), ferror(3), clearerr(3), ferror(3)  
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.