Strange behavior of MSVC's printf under cygwin shell?

Pietro Toniolo ptoniolo@tin.it
Mon Mar 25 18:52:00 GMT 2002


Wirawan Purwanto wrote:

> Why does the screen output displayed using MSVC's printf subroutine not get
> shown immediately under Cygwin shell (bash, specifically)? Rather, it would
> wait for a long time before showing the text lines (many lines at once). How
> to change this behavior?

With -mno-cygwin, stdout is buffered. You can realize it if you put a
fflush(stdout) after the printf: the behavior is what you expect.

But, why this difference? I don't know.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list