X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffeof.c;h=93203d0dff0e14cd6e97f1c56f5cd3f3f560be48;hp=dd19dcb4157d6a5f6837f49d7033667a75770ec9;hb=bdb5cd8978b8ec6f0e616bdb1810c8d753e4d84b;hpb=98e6058f0fe852143c4ec0d5c243cbeda6e32c4c diff --git a/functions/stdio/feof.c b/functions/stdio/feof.c index dd19dcb..93203d0 100644 --- a/functions/stdio/feof.c +++ b/functions/stdio/feof.c @@ -5,10 +5,12 @@ // 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; } -*/