01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FERROR (3S) FERROR (3S)<br />

NAME<br />

ferror, feof, clearerr, fileno - stream status inquiries<br />

SYNOPSIS<br />

#include <br />

int feof (stream)<br />

FILE<br />

*stream;<br />

int ferror (stream)<br />

FILE<br />

*stream;<br />

void clearerr (stream)<br />

FILE<br />

*stream;<br />

int fileno(stream)<br />

FILE<br />

*stream;<br />

DESCRIPTION<br />

Feof returns non-zero when EOF has previously been detected<br />

reading the named input stream , otherwise zero.<br />

Ferror returns non-zero when an 1/0 error has previously<br />

occurred reading from or writing to the named stream, otherwise<br />

zero.<br />

Clearerr resets the error indicator and EOF indicator to zero on<br />

the named stream.<br />

Fileno returns the integer file descriptor associated with the<br />

named stream ; see open(2).<br />

NOTE<br />

All these functions are implemented as macros; they cannot be<br />

declared or redeclared.<br />

SEE ALSO<br />

open(2), fopen(3S).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!