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

From: nikki AT gameboutique DOT co (nikki)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Ghosts in DJGPP :-)
Date: 27 Jan 1997 21:40:12 GMT
Organization: GameBoutique Ltd.
Lines: 20
Message-ID: <5cj7bs$elj@flex.uunet.pipex.com>
References: <32ED052A DOT 548B AT mit DOT edu>
Reply-To: nikki AT gameboutique DOT co
NNTP-Posting-Host: www.gameboutique.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> If you need to flush the stdout buffer, I believe there is a function
> somewhere to do that (libc reference is not handy right now!), fflush
> perhaps? There is even a way to shrink the stdout buffer if you need to.
> Sorry I don't remember it off the top of my head, but I hope this helps.

yeh it's fflush. eg. you can do
printf("hello");
fflush(stdout);

which will ensure it gets put to screen. or write direct to screen with cprintf,
which isn't buffered i think.

nik


-- 
Graham Tootell           GameBoutique Ltd. - THE online gaming experience
nikki AT gameboutique DOT com   http://www.gameboutique.com


- Raw text -


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