MicrOS
ferror.c File Reference
#include "../stdio.h"

Functions

int ferror (FILE *stream)
 Check error indicator. More...
 

Function Documentation

◆ ferror()

int ferror ( FILE stream)

Check error indicator.

Checks if the error indicator associated with stream is set, returning a value different from zero if it is.

Parameters
sstreamtream Pointer to a FILE object that identifies the stream to be closed.
Returns
A non-zero value is returned in the case that the error indicator associated with the stream is set. Otherwise, zero is returned.