| delorie.com/archives/browse.cgi | search |
| Message-ID: | <35E4E7EF.CF07B3F4@post.comstar.ru> |
| Date: | Thu, 27 Aug 1998 09:00:31 +0400 |
| From: | Dim Zegebart <zager AT post DOT comstar DOT ru> |
| Reply-To: | zager AT post DOT comstar DOT ru |
| Organization: | Comstar Ltd. |
| MIME-Version: | 1.0 |
| To: | "Thomas J. Hruska" <thruska AT tir DOT com> |
| CC: | djgpp AT delorie DOT com |
| Subject: | Re: Display question... |
| References: | <3 DOT 0 DOT 5 DOT 16 DOT 19980827002417 DOT 0cbf3f84 AT mail DOT tir DOT com> |
Thomas J. Hruska wrote:
> printf("Hello World!");
>
> It won't print anything to the screen until either the program is finished
> or until a newline character is printed.
Since DJGPP has UNIX ancestor it has some UNIX features too. So, in UNIXall
streams (stdout is a stream) are buffered and behave exactly as you describe.
So, my suggestion is place '\n' at the end of each printfed line or do
fflush(stdout)
--
Dim Zegebart
Moscow, Russia
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |