X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffeof.c;h=b37c7b94dd0bdffbf734eaba24d4aaf9a15ed384;hb=28560df1b632539d7133749626b69ca4b91ea1e6;hp=ca43c75532bd4d06b3c83607597575faa7d25976;hpb=84d648157e22cecc65902ecfdd4e3a1b88d5e53f;p=pdclib.old 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 );