www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/16/07:55:46

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fflush(stdout)?
Date: Sat, 15 May 1999 22:38:56 -0400
Organization: BrunNet
Lines: 17
Message-ID: <373E2FBF.CC3E3FB5@unb.ca>
References: <373e18fb AT news DOT ismi DOT net>
NNTP-Posting-Host: ftnts1c20.brunnet.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.51 [en] (Win95; U)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ike wrote:

>     What exactly does fflush(stdout) do, and why would it be used on stdout?
> How is different for file streams?  Thanks ...

    stdout is buffered, the contents only get written when a "\n" is printed or
when 16k is written (which ever comes first).  If you need it to appear NOW and
it won't, use fflush.
--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047




- Raw text -


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