home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / xtxtmode.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  766b  |  22 lines

  1. /***
  2. *xtxtmode.c - set global text mode flag
  3. *
  4. *       Copyright (c) 1989-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       Sets the global file mode to text.  This is the default.
  8. *
  9. *       This is a special version for the DLL model.  This object goes into
  10. *       MSVCRT.LIB (and therefore into the client EXE) and not into the
  11. *       CRTL in a DLL (MSVCRTXX.DLL).  It is identical to txtmode.obj
  12. *       except that the latter has a DLL export definition in the DLL model.
  13. *
  14. *******************************************************************************/
  15.  
  16. #define SPECIAL_CRTEXE  /* turn off _CRTIMP for decl. of _fmode */
  17.  
  18. #include <cruntime.h>
  19. #include <stdlib.h>
  20.  
  21. int _fmode = 0;                 /* set text mode */
  22.