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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: clearerr.c,v 1.1 1997/01/17 16:23:06 digulla Exp $
  4.  
  5.     Desc: ANSI C function clearerr()
  6.     Lang: english
  7. */
  8.  
  9. /*****************************************************************************
  10.  
  11.     NAME */
  12. #include <stdio.h>
  13.  
  14.     void clearerr (
  15.  
  16. /*  SYNOPSIS */
  17.     FILE * stream)
  18.  
  19. /*  FUNCTION
  20.     Clear EOF and error flag in a stream. You must call this for
  21.     example after you have read the file until EOF, then appended
  22.     something to it and want to continue reading.
  23.  
  24.     INPUTS
  25.     stream - The stream to be reset.
  26.  
  27.     RESULT
  28.     None.
  29.  
  30.     NOTES
  31.  
  32.     EXAMPLE
  33.  
  34.     BUGS
  35.  
  36.     SEE ALSO
  37.     ferror(), clearerr()
  38.  
  39.     INTERNALS
  40.  
  41.     HISTORY
  42.  
  43. ******************************************************************************/
  44. {
  45.     stream->flags &= ~(_STDIO_FILEFLAG_EOF | _STDIO_FILEFLAG_ERROR);
  46. } /* clearerr */
  47.  
  48.