www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/15/11:21:50

From: nikki AT gameboutique DOT co (nikki)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: TCP/IP Library, Svasync Library, and a Stdout that won't flush
Date: 12 Feb 1997 01:16:02 GMT
Organization: GameBoutique Ltd.
Lines: 19
Message-ID: <5dr5ki$8qs@flex.uunet.pipex.com>
References: <32FE32DF DOT 0 AT cyberspace DOT com>
NNTP-Posting-Host: www.gameboutique.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> This may seem pretty lame, but I cannot figure out how to flush the
> stdout.  When I call fflush(stdout), I know there is stuff in the
> buffer, but it doesn't display on the screen.  What am I to do?


this should work, eg something of the form

printf("hello");
fflush(stdout);

would print hello out. perhaps you've redirected stdout? or perhaps you're
not writing the data to stdout but stderr or somewhere weird?

regards,
nik

-- 
Graham Tootell           
nikki AT gameboutique DOT com  

- Raw text -


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