home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / CLEARERR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.3 KB  |  41 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - clearerr.c
  3.  *
  4.  * function(s)
  5.  *        clearerr - resets error indication
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*[]------------------------------------------------------------[]*/
  9. /*|                                                              |*/
  10. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  11. /*|                                                              |*/
  12. /*|                                                              |*/
  13. /*|     Copyright (c) 1987,1988,1990 by Borland International    |*/
  14. /*|     All Rights Reserved.                                     |*/
  15. /*|                                                              |*/
  16. /*[]------------------------------------------------------------[]*/
  17.  
  18.  
  19. #include <stdio.h>
  20.  
  21. /*---------------------------------------------------------------------------*
  22.  
  23. Name        clearerr - resets error indication
  24.  
  25. Usage        #include <stdio.h>
  26.         void clearerr(FILE *stream);
  27.  
  28. Prototype in    stdio.h
  29.  
  30. Description    clearerr sets the stream's error and end-of-file indicators
  31.         to 0.
  32.  
  33. Return value    nothing
  34.  
  35. *---------------------------------------------------------------------------*/
  36. void clearerr (FILE *fp)
  37. {
  38.     fp->flags &= ~(_F_ERR | _F_EOF);
  39. }
  40.  
  41.