Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>ferror</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  FERROR

  .  Summary

  ferror(int <fh>);

  .  Description

  The ferror function checks the error flag for a file represented by
  the file handle <fh>. The error flag stays set until it is cleared
  with fclearerr or the file is closed.

  .  Return Value

  A non-zero (TRUE) value is returned if the file's error flag is set.

  .  Example

  int f;
  f = fopen("test.dat", "r");       // open file only for reading
  fputs("This should set the error flag!", f);
  if (ferror(f))
   prints("Error writing to file!");

See Also: fclearerr feof

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson