// 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
-/* PDPC code - unreviewed
+void clearerr( FILE * fh )
{
- stream->errorInd = 0;
- stream->eofInd = 0;
+ fh->ErrorIndicator = 0;
+ fh->EOFIndicator = 0;
return;
}
-*/
// This code is Public Domain. Use, modify, and redistribute at will.
// ----------------------------------------------------------------------------
-int feof( FILE * stream ) { /* TODO */ };
+#ifndef __FILE_H
+#define __FILE_H __FILE_H
+#include <__FILE.h>
+#endif // __FILE_H
-/* PDPC code - unreviewed
+int feof( FILE * fh )
{
- return (stream->eofInd);
+ return fh->EOFIndicator;
}
-*/
// 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
-/* PDPC code - unreviewed
+int ferror( FILE * fh )
{
- return (stream->errorInd);
+ return fh->ErrorIndicator;
}
-*/