home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / clib / feof.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-09  |  833 b   |  47 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: feof.c,v 1.2 1996/12/11 11:24:06 aros Exp $
  4.  
  5.     Desc: ANSI C function feof()
  6.     Lang: english
  7. */
  8.  
  9. /*****************************************************************************
  10.  
  11.     NAME */
  12. #include <stdio.h>
  13.  
  14.     int feof (
  15.  
  16. /*  SYNOPSIS */
  17.     FILE * stream)
  18.  
  19. /*  FUNCTION
  20.     Test the EOF-Flag of a stream. This flag is set automatically by
  21.     any function which recognises EOF. To clear it, call clearerr().
  22.  
  23.     INPUTS
  24.     stream - The stream to be tested.
  25.  
  26.     RESULT
  27.     != 0, if the stream is at the end of the file, 0 otherwise.
  28.  
  29.     NOTES
  30.  
  31.     EXAMPLE
  32.  
  33.     BUGS
  34.  
  35.     SEE ALSO
  36.     ferror(), clearerr()
  37.  
  38.     INTERNALS
  39.  
  40.     HISTORY
  41.  
  42. ******************************************************************************/
  43. {
  44.     return (stream->flags & _STDIO_FILEFLAG_EOF) != 0;
  45. } /* feof */
  46.  
  47.