On Thu, Jun 23, 2011 at 2:52 PM, Walter Bright
<newshou...@digitalmars.com>wrote:

> On 6/23/2011 11:48 AM, Jimmy Cao wrote:
>
>> But that's not possible (to set it to line-buffering) on Windows, right?
>>
>
> Sure it is, using the usual C functions. This is not a Windows thing, it's
> a C runtime library thing.
>

How do you make it have line-buffering?
It's not possible to set line-buffering in Windows using setvbuf, it seems:
http://msdn.microsoft.com/en-us/library/86cebhfs(v=vs.71).aspx
_IOFBF and _IOLBF are the same.

I think this is the cause of the strange flushing inconsistencies with
stdio.d from my earlier example on Windows.

Reply via email to