]> pd.if.org Git - pdclib/blobdiff - functions/stdio/ferror.c
Reviewed / implemented.
[pdclib] / functions / stdio / ferror.c
index a1855a32a7adb0eab2668539c2a97f864842cbfe..71bd7378e642c328f3b5c5dc1fe7647429c8c928 100644 (file)
@@ -5,4 +5,12 @@
 // This code is Public Domain. Use, modify, and redistribute at will.
 // ----------------------------------------------------------------------------
 
-int ferror( FILE * stream ) { /* TODO */ };
+#ifndef __FILE_H
+#define __FILE_H __FILE_H
+#include <__FILE.h>
+#endif // __FILE_H
+
+int ferror( FILE * fh )
+{
+    return fh->ErrorIndicator;
+}