[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: stdin in binary mode under Windows - how?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 9 Sep 2008 13:30:53 -0300
> Question: Is there an easy way to change stdin to binary mode under Windows?
The code below (or a simple variation) works in some compilers:
_setmode(_fileno(stdin),_O_BINARY);