Files
retrobsd/src/libc/stdio/ferror.c
Serge d5002ad0ac Use LD for linking mips binaries, not CC.
Fix a few incompatibilities in C sources.
2022-05-25 19:23:39 -07:00

15 lines
192 B
C

/*
* A subroutine version of the macro ferror
*/
#define USE_STDIO_MACROS
#include <stdio.h>
#undef ferror
int
ferror(fp)
register FILE *fp;
{
return (fp->_flag & _IOERR) != 0;
}