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