X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fclearerr.c;h=28a042d8bd12affa09be2ea7d11737a5931f8ec2;hb=c8f799d852e3698468a78954d82588e841cc0b70;hp=d54e559fe6a95dbecd241dd6a634917f61cf47f6;hpb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;p=pdclib.old diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c index d54e559..28a042d 100644 --- a/functions/stdio/clearerr.c +++ b/functions/stdio/clearerr.c @@ -1,16 +1,18 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * 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; } -*/