This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Strange behavior of MSVC's printf under cygwin shell?
- From: Pietro Toniolo <ptoniolo at tin dot it>
- To: cygwin at cygwin dot com
- Date: Mon, 25 Mar 2002 23:02:36 +0100
- Subject: Re: Strange behavior of MSVC's printf under cygwin shell?
- Newsgroups: gmane.os.cygwin
- References: <LAW2-OE53WO6hm8Ua8d000018b3@hotmail.com>
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/