------- Comment #2 from pinskia at gcc dot gnu dot org 2008-10-09 18:46 ------- FILEs only fushes its internal buffer when it encounters a newline or when done explicitly. Do it explicitly, use fflush (stdout);.
Anyways this is not a compiler or a library issue. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37785