home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / feof.txh < prev    next >
Encoding:
Text File  |  1995-07-17  |  392 b   |  26 lines

  1. @node feof, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. int feof(FILE *file);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function can be used to indicate if the given @var{file} is at
  13. the end-of-file or not.
  14.  
  15. @subheading Return Value
  16.  
  17. Nonzero at end-of-file, zero otherwise.
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. while (!feof(stdin))
  23.   gets(line);
  24. @end example
  25.  
  26.