delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/20/18:40:24

Date: Sat, 21 Oct 2000 00:40:39 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Ed Collins" <emacduffie AT mediaone DOT net>
Message-Id: <4634-Sat21Oct2000004037+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.5h
CC: djgpp AT delorie DOT com
In-reply-to: <Lw1I5.25758$h%1.156533@typhoon.jacksonville.mediaone.net>
(emacduffie AT mediaone DOT net)
Subject: Re: printf
References: <Lw1I5.25758$h%1 DOT 156533 AT typhoon DOT jacksonville DOT mediaone DOT net>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Ed Collins" <emacduffie AT mediaone DOT net>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 20 Oct 2000 20:01:47 GMT
> 
> When executing a C program in rhide under Windows98, I cannot get the printf
> function to work.  Nothing is printed to the User Screen.

You forget the buffering; see section 9.5 of the DJGPP FAQ for
details.

In this case, just putting a \n at the end of the printf format string
will do what you want.  Alternatively, call fflush(stdout) after
printf.

- Raw text -


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