diff options
Diffstat (limited to 'usr/klibc/stdio/ferror.c')
-rw-r--r-- | usr/klibc/stdio/ferror.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/klibc/stdio/ferror.c b/usr/klibc/stdio/ferror.c new file mode 100644 index 0000000..819743b --- /dev/null +++ b/usr/klibc/stdio/ferror.c @@ -0,0 +1,8 @@ +#define __NO_STDIO_INLINES +#include "stdioint.h" + +int ferror(FILE *__f) +{ + return __f->_IO_error; +} +__ALIAS(int, ferror_unlocked, (FILE *), ferror) |