home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April / Chip_1997-04_cd.bin / prezent / cb / data.z / FILES.C < prev    next >
C/C++ Source or Header  |  1997-01-16  |  1KB  |  40 lines

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