This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37785] printf without '\n' + sleep = problems with output buffer
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Oct 2008 18:46:01 -0000
- Subject: [Bug c/37785] printf without '\n' + sleep = problems with output buffer
- References: <bug-37785-16813@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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