home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
223_01
/
ferror.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1979-12-31
|
384 b
|
19 lines
/*
** ferror.c by F. A. Scacchitti 11/22/84
**
** Returns true only if a file error has occurred.
**
*/
#include <stdio.h>
static char c;
ferror(fd) int fd; {
c = *(fd + 40);
return(c == EOF ? FALSE : c);
}