Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
ferror(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) ----
17 pages link to
ferror(3)
:
Man3f
fgetc(3)
fputc(3)
fputs(3)
fread(3)
getc(3)
getchar(3)
gets(3)
getw(3)
putc(3)
putchar(3)
puts(3)
putw(3)
ungetc(3)
feof(3)
fgets(3)
fwrite(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.