clearerr is now also a macro

This commit is contained in:
ceriel 1991-01-03 14:31:16 +00:00
parent c4c7787acc
commit ac8168088c

View file

@ -124,6 +124,7 @@ int __flushbuf(int _c, FILE *_stream);
#define feof(p) (((p)->_flags & _IOEOF) != 0) #define feof(p) (((p)->_flags & _IOEOF) != 0)
#define ferror(p) (((p)->_flags & _IOERR) != 0) #define ferror(p) (((p)->_flags & _IOERR) != 0)
#define clearerr(p) ((p)->_flags &= (_IOERR|_IOEOF))
#if defined(__BSD4_2) || defined(__USG) || defined(_POSIX_SOURCE) #if defined(__BSD4_2) || defined(__USG) || defined(_POSIX_SOURCE)
int fileno(FILE *_stream); int fileno(FILE *_stream);