Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
fileno(3)
Edit
PageHistory
Diff
Info
LikePages
FERROR !!!FERROR NAME SYNOPSIS DESCRIPTION ERRORS CONFORMING TO SEE ALSO ---- !!NAME clearerr, feof, ferror, fileno - check and reset stream status !!SYNOPSIS __#include __ __void clearerr( FILE *__''stream''__); int feof( FILE *__''stream''__); int ferror( FILE *__''stream''__); int fileno( FILE *__''stream''__);__ !!DESCRIPTION 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''. (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''). !!SEE ALSO open(2), stdio(3) ----
4 pages link to
fileno(3)
:
Man3f
fdopen(3)
freopen(3)
fopen(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.