X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fclearerr.c;fp=functions%2Fstdio%2Fclearerr.c;h=7fcdf8e0cd84aba43f41b8f660bb1acd2a6bb770;hb=20bd073bd9ae9760a98cc1fbcca79d6f51ca3a06;hp=d54e559fe6a95dbecd241dd6a634917f61cf47f6;hpb=5f75278ec2ac5240da801193a7b0cf93cb02e461;p=pdclib.old 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; } -*/