7.19.10.3 The ferror function

Synopsis

1

#include <stdio.h>
int ferror(FILE *stream);

Description

2

The ferror function tests the error indicator for the stream pointed to by stream.

Returns

3

The ferror function returns nonzero if and only if the error indicator is set for stream.