Programming Windows D Examples are now Online!
Jimmy Cao
jcao219 at gmail.com
Thu Jun 23 13:03:34 PDT 2011
On Thu, Jun 23, 2011 at 2:52 PM, Walter Bright
<newshound2 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20110623/46a940c7/attachment.html>
More information about the Digitalmars-d-announce
mailing list