X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffeof.c;h=b37c7b94dd0bdffbf734eaba24d4aaf9a15ed384;hb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;hp=ca43c75532bd4d06b3c83607597575faa7d25976;hpb=702e9008178bdb5c1b123b963868c946537fb7f5;p=pdclib diff --git a/functions/stdio/feof.c b/functions/stdio/feof.c index ca43c75..b37c7b9 100644 --- a/functions/stdio/feof.c +++ b/functions/stdio/feof.c @@ -9,13 +9,14 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -int feof_unlocked( struct _PDCLIB_file_t * stream ) +int feof_unlocked( FILE * stream ) { return stream->status & _PDCLIB_EOFFLAG; } -int feof( struct _PDCLIB_file_t * stream ) +int feof( FILE * stream ) { flockfile( stream ); int eof = feof_unlocked( stream );