summaryrefslogtreecommitdiff
path: root/src/stdio/feof.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/feof.c')
-rw-r--r--src/stdio/feof.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stdio/feof.c b/src/stdio/feof.c
new file mode 100644
index 00000000..f2b739b5
--- /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);