Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->ferror()

Summary

#include <stdio.h>


int ferror(FILE* stream);    Test for error on given stream


Parameter

stream    Pointer to FILE structure


Description

This function returns the value of the error indicator for the stream.  If a reading or writing error has occurred, the error indicator is set and remains set until clearerr() is called.


Return Value

The value if the error indicator is returned.  This is zero if no error has occurred.