delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/28/09:21:48

Date: Tue, 28 Jan 1997 09:16:30 -0500 (EST)
From: Nikita Proskourine <nproskou AT goucher DOT edu>
To: xlysak <xlysak AT fi DOT muni DOT cz>
cc: djgpp AT delorie DOT com
Subject: Re: Ghosts in DJGPP :-)
In-Reply-To: <32ED747F.70BD@fi.muni.cz>
Message-ID: <Pine.SUN.3.91.970128091419.10880B-100000@rwd>
MIME-Version: 1.0

On Tue, 28 Jan 1997, xlysak wrote:

> Can someone help me ? 
> 
> In my program are two function - first is printf() and second is
> getch(), 
> but - first is called getch() and then printf(). Ghosts in the GCC :-)? 
> All examples showed bellow running correctly in Borland C++ 3.1.
In GCC standard input/output is buffered. So there's a chance of not 
having something printed at the right time. Try flushing the buffer after 
each printf with fflush(stdout); /* or something like that, don't have 
ref. on this computer */

-- Nikita.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019