ferror

Returns a nonzero integer if an error occurred while reading or writing a file.

Format

#include  <stdio.h>

int ferror  (FILE *file_ptr);

Argument

file_ptr
A file pointer.

Description

A call to ferror continues to return a nonzero integer until the file is closed or until clearerr is called.

Return Values
Indicates success. 
nonzero integer  Indicates that an error has occurred. 


Previous Page | Next Page | Table of Contents | Index