int ferror(
	FILE * __stream)

Test the error flag of stream. This flag can only be cleared by a call to clearerr().