]> pd.if.org Git - pdclib/blobdiff - functions/stdio/clearerr.c
Reviewed / implemented.
[pdclib] / functions / stdio / clearerr.c
index 1adce827e840a6d67bbdb69ee7897bb87700338c..7fcdf8e0cd84aba43f41b8f660bb1acd2a6bb770 100644 (file)
@@ -5,4 +5,14 @@
 // This code is Public Domain. Use, modify, and redistribute at will.
 // ----------------------------------------------------------------------------
 
-void clearerr( FILE * stream ) { /* TODO */ };
+#ifndef __FILE_H
+#define __FILE_H __FILE_H
+#include <__FILE.h>
+#endif // __FILE_H
+
+void clearerr( FILE * fh )
+{
+    fh->ErrorIndicator = 0;
+    fh->EOFIndicator = 0;
+    return;
+}