Willus.com Home   |   Archive   |   About  

Willus.com's MinGW/Gnu C Tips

MinGW Tips
Overview
Install Notes
Benchmark
Starter Links
Compile Flags
Fast Math Funcs
DLLs
Globbing
Console
Binary Stdout
Predefined Macros
Linker Map
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
MinGW64 Home
MinGW Home
Users Mail Archive
MinGW Bug List
Gnu C Home

Willus.com Links
Willus.com Home
Win32/64 Compilers
Win32/64 Software
Compiler Benchmark

This page last modified
Saturday, 13-Jun-2020 11:54:52 MDT