X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fclearerr.c;h=7fcdf8e0cd84aba43f41b8f660bb1acd2a6bb770;hp=d54e559fe6a95dbecd241dd6a634917f61cf47f6;hb=bdb5cd8978b8ec6f0e616bdb1810c8d753e4d84b;hpb=98e6058f0fe852143c4ec0d5c243cbeda6e32c4c diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c index d54e559..7fcdf8e 100644 --- a/functions/stdio/clearerr.c +++ b/functions/stdio/clearerr.c @@ -5,12 +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 -/* PDPC code - unreviewed +void clearerr( FILE * fh ) { - stream->errorInd = 0; - stream->eofInd = 0; + fh->ErrorIndicator = 0; + fh->EOFIndicator = 0; return; } -*/