C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_fmode
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Variable:  _fmode
 
  Include:   <stdlib.h>
 
  Syntax:    int _fmode;
 
     The _fmode variable controls the default file-translation mode. It
     is declared in STDLIB.H. By default, the value of _fmode is 0,
     causing files to be translated in text mode (unless specifically
     opened or set to binary mode).
 
     When _fmode is set to _O_BINARY, the default mode is binary. You
     can set _fmode to the flag _O_BINARY by linking with BINMODE.OBJ,
     or by assigning it the _O_BINARY value. (_O_TEXT and _O_BINARY are
     defined in FCNTL.H.)
 
     See BINMODE.OBJ for a discussion of binary and text modes.
                                    -♦-