Partager via


_fmode (Windows CE 5.0)

Send Feedback

Developing an Application > Microsoft C Run-time Library for Windows CE > Global Variables and Standard Types > Global Variables

The _fmode variable sets the default file-translation mode for text or binary translation.

It is declared in Stdlib.h as follows:

extern int _fmode;

For text-mode translation, the default setting of _fmode is _O_TEXT.

For binary mode, the default setting is _O_BINARY.

You can change the value of _fmode in two ways:

  • Link with Binmode.obj.

    This changes the initial setting of _fmode to _O_BINARY, causing all files except stdin, stdout, and stderr to be opened in binary mode.

  • Change the value of _fmode by setting it in your program.

See Also

Global Variables

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.