Go to the first, previous, next, last section, table of contents.


ferror

Syntax

#include <stdio.h>

int ferror(FILE *file);

Description

This function can be used to indicate if the given file has encountered an error or not. See section clearerr.

Return Value

Nonzero for an error, zero otherwize.

Portability

ANSI, POSIX

Example

if (ferror(stdin))
  exit(1);


Go to the first, previous, next, last section, table of contents.