caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] flushing stdout with flush stdout not good?
@ 2001-09-03 19:27 Michael Leary
  2001-09-03 20:02 ` Markus Mottl
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Leary @ 2001-09-03 19:27 UTC (permalink / raw)
  To: caml

I'm programming a realtime bot (as you may know :) and using printf with a
newline terminated format string followed by a call of fse ( short for
"flush stdout" in my prog) really doesn't work very well at flushing
stdout -- commands don't get read properly by the system, and get processed
in chunks, rather than as sent.  For some reason calling print_newline is
amazingly more effective, i.e. leaving the newline out of the printf format
string, and letting print_newline () take care of it.

Is this a known feature, or does it have to do with the indirect call of
flush stdout?

-- 
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-09-04 17:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-03 19:27 [Caml-list] flushing stdout with flush stdout not good? Michael Leary
2001-09-03 20:02 ` Markus Mottl
2001-09-04  1:59   ` Michael Leary
2001-09-04  2:31     ` Michael Leary
2001-09-04  2:40       ` Alexander V. Voinov
2001-09-04  2:53       ` Jon Moore
2001-09-04 17:55         ` Michael Leary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).