minix man page for ferror

Query: ferror

OS: minix

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FERROR(3)						     Library Functions Manual							 FERROR(3)

NAME
ferror, feof, clearerr, fileno - stream status inquiries
SYNOPSIS
#include <stdio.h> int feof(FILE *stream) int ferror(FILE *stream) int clearerr(FILE *stream) int fileno(FILE *stream)
DESCRIPTION
Feof returns non-zero when end of file is read on the named input stream, otherwise zero. Unless cleared by clearerr, the end-of-file indication lasts until the stream is closed. Ferror returns non-zero when an error has occurred reading or writing the named stream, otherwise zero. Unless cleared by clearerr, the error indication lasts until the stream is closed. Clearerr resets the error and end-of-file indicators on the named stream. Fileno returns the integer file descriptor associated with the stream, see open(2). Currently all of these functions are implemented as macros; they cannot be redeclared.
SEE ALSO
fopen(3), open(2). 4th Berkeley Distribution May 14, 1986 FERROR(3)
Related Man Pages
clearerr(3) - mojave
feof(3) - mojave
clearerr(3) - redhat
ferror_unlocked(3) - osx
fileno(3) - osx
Similar Topics in the Unix Linux Community
Encript Timestamp with blowfish
Malloc problem with fread() to read file to structure in C
How to replace all but the first 3 characters with sed?
Script solution - running Excel macro in SLES
Python- Client and server certificate validation