1 2 3 4 5 6 7
#include <__stdio.h> #include <stdio.h> int ferror_unlocked(FILE *stream) { return (stream) ? (stream->flags & _IO_ERR) != 0 : 0; }