home *** CD-ROM | disk | FTP | other *** search
- /*-----------------------------------------------------------------------*
- * filename - xfflush.c
- *
- * function(s)
- * _xfflush - flushes streams
- *-----------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C Run Time Library - Version 3.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1987,1988,1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
- #include <stdio.h>
-
- /*---------------------------------------------------------------------*
-
- Name _xfflush - flushes streams
-
- Usage void _xfflush(void)
-
- Description called at exit to flush open streams
-
- *---------------------------------------------------------------------*/
- void _xfflush(void)
- {
- register FILE *fp;
- register int i = 4;
-
- for (fp = _streams; i; i--, fp++)
- if (fp->flags & _F_RDWR)
- fflush(fp);
- }
-