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>feof</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  FEOF

  .  Summary

  feof(int <fh>);

  .  Description

  The feof function determines if the file position for the open file
  represented by the file handle <fh> is at the end-of-file position.

  .  Return Value

  A non-zero (TRUE) value is returned if the file position is at the
  end of the file.

  .  Example

  int f, chr;
  f = fopen("test.dat", "r");
  while ((chr = fgetc(f)) != -1)    // print contents of file
   printc(chr);
  if (feof(f))
   prints("Reached end of file.");
  else
   prints("Error reading file");

See Also: ferror

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