diff options
Diffstat (limited to 'src/stdio/feof.c')
-rw-r--r-- | src/stdio/feof.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stdio/feof.c b/src/stdio/feof.c new file mode 100644 index 0000000..f2b739b --- /dev/null +++ b/src/stdio/feof.c @@ -0,0 +1,10 @@ +#include "stdio_impl.h" + +#undef feof + +int feof(FILE *f) +{ + return !!(f->flags & F_EOF); +} + +weak_alias(feof, feof_unlocked); |