<div><div class="gmail_quote">On Thu, Jun 23, 2011 at 2:52 PM, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 6/23/2011 11:48 AM, Jimmy Cao wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But that's not possible (to set it to line-buffering) on Windows, right?<br>
</blockquote>
<br></div>
Sure it is, using the usual C functions. This is not a Windows thing, it's a C runtime library thing.<br>
</blockquote></div><br></div><div>How do you make it have line-buffering?</div><div>It's not possible to set line-buffering in Windows using setvbuf, it seems:<div><a href="http://msdn.microsoft.com/en-us/library/86cebhfs(v=vs.71).aspx">http://msdn.microsoft.com/en-us/library/86cebhfs(v=vs.71).aspx</a></div>

<div>_IOFBF and _IOLBF are the same.</div><div><br></div><div>I think this is the cause of the strange flushing inconsistencies with stdio.d from my earlier example on Windows.</div></div>