home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / XCLOSE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  815 b   |  36 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - xclose.c
  3.  *
  4.  * function(s)
  5.  *        _xclose - closes files
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <io.h>
  18.  
  19. /*---------------------------------------------------------------------*
  20.  
  21. Name            _xclose - closes files
  22.  
  23. Usage           void _xclose(void)
  24.  
  25. Description     called at exit to close open files
  26.  
  27. *---------------------------------------------------------------------*/
  28. void _xclose(void)
  29. {
  30.         register int    i;
  31.  
  32.         for (i = 2; i < _nfile; i++)
  33.                 close(i);
  34. }
  35.  
  36.