Willus.com
Home
|
Archive
Willus.com's MinGW/Gnu C Tips
MinGW Tips
Overview
Benchmark
Starter Links
Compile Flags
Fast Math Funcs
DLLs
Globbing
Console
Binary Stdout
Predefined Macros
Show All Tips
Binary stdout
If you want the output from the
stdout
FILE stream to be binary (no translation of CR/LF chars):
#ifdef __MINGW32__
/* Required header file */
#include <fcntl.h>
#endif
...
#ifdef __MINGW32__
/* Switch to binary mode */
_setmode(_fileno(stdout),_O_BINARY);
#endif
MinGW Links
MinGW Home
Users Mail Archive
MinGW Bug List
Gnu C Home
Willus.com Links
Willus.com Home
Win32 Compilers
Win32 Software
Compiler Benchmark
About willus.com
This page last modified
Sunday, 31-Jan-2010 16:24:48 CST
News