home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / WILD32.PAK / FILES.C < prev    next >
C/C++ Source or Header  |  1995-08-29  |  1KB  |  45 lines

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