clearerr is now also a macro
authorceriel <none@none>
Thu, 3 Jan 1991 14:31:16 +0000 (14:31 +0000)
committerceriel <none@none>
Thu, 3 Jan 1991 14:31:16 +0000 (14:31 +0000)
lang/cem/libcc.ansi/headers/stdio.h

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