By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,294 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

How to force an immediate writing of the printf() buffer content to console ???

P: n/a
I wrote something with printf() to the console (under Windows) in a DLL.
Then I called back a routine and detected that the output of the later called code
was written PRIOR to the previous text to the console.
So I am searching for a way to force Windows (Visual C++) to release the current content
of the printf buffer.

I read somewhere that appending a '\n' would do that. But: I already appended a '\n'
and it didn't help.

As far as I remember there is a function like flush() or so which has a similar meaning.

Could someone help me ?

Thank you
Peter

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.