www.delorie.com/djgpp/doc/libc-2.01/libc_261.html   search  
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.

Example

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


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997