home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 12.ddi / WILD32.PAK / FILES.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.2 KB  |  39 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - files.c
  3.  *
  4.  * function(s)
  5.  *        none
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /* $Copyright: 1987$ */
  9.  
  10. #include <stdio.h>
  11. #include <_nfile.h>
  12.  
  13. /*----------------------------------------------------------------------
  14.  * The following external reference forces _init_streams (in streams.obj)
  15.  * to be called at startup.
  16.  */
  17. extern void _RTLENTRY _init_streams(void);
  18. #pragma startup       _init_streams 5
  19.  
  20. /*---------------------------------------------------------------------*
  21.  
  22. Name            _streams
  23.  
  24. Description     _streams is the array of FILE structures used by the
  25.                 stream handling functions.
  26.  
  27. *---------------------------------------------------------------------*/
  28.  
  29. #define _F_STDIN        (_F_READ | _F_TERM | _F_LBUF)
  30. #define _F_STDOUT       (_F_WRIT | _F_TERM | _F_LBUF)
  31. #define _F_STDERR       (_F_WRIT | _F_TERM)
  32.  
  33. FILE    _RTLENTRY _EXPDATA _streams [_NFILE_] =
  34. {
  35.         { NULL, NULL, 0, 0, 0, _F_STDIN,  0, 0, 0 },
  36.         { NULL, NULL, 0, 0, 0, _F_STDOUT, 0, 1, 0 },
  37.         { NULL, NULL, 0, 0, 0, _F_STDERR, 0, 2, 0 }
  38. };
  39.