JuliaLang/julia — pull request #3949 by stevengj (2013-08-06 04:09:57+00:00)
Title: RFC: add flush_cstdio function

This adds `flush_cstdio()` function, which calls `fflush(stdout)` and `fflush(stderr)` in C. This is needed in order to flush any output from external C code.

(For example, I need this in IJulia in order to make sure external `printf` output is captured after evaluating an input cell.)