Flush to stdio?

Iain Buclaw ibuclaw at ubuntu.com
Mon Apr 1 11:36:40 PDT 2013


On 1 April 2013 19:13, Dleaner <bm.email01 at gmail.com> wrote:

> I was using writef("escape string" ~ "Display string") to try to simulate
> a console, but noticed that the writes are only flushed when a newline is
> present.
>
> Is there a 'flush' function that works with stdio?
> 'flush()' seems unkown to the compiler, and 'fflush()' seems to be for
> files, not for writing to the screen.
>


You mean stdout.flush() ?

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20130401/a67b96dc/attachment.html>


More information about the D.gnu mailing list