X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffeof.c;h=93203d0dff0e14cd6e97f1c56f5cd3f3f560be48;hb=4620b3ce3865ba009355cf146de81d76229143a2;hp=7467465fe9298d723cc61a46e1cc668e1a1cc57b;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/stdio/feof.c b/functions/stdio/feof.c index 7467465..93203d0 100644 --- a/functions/stdio/feof.c +++ b/functions/stdio/feof.c @@ -5,4 +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 + +int feof( FILE * fh ) +{ + return fh->EOFIndicator; +}