delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/11/18:24:17

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fflush(stdin); /*doesn't seem to work in dos? */
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <28d6fs4hn8shqt8nbuq4foidkn2pc68e21@4ax.com>
References: <6uhI4.60$ie DOT 11883 AT news DOT deakin DOT edu DOT au> <83r9cdag0m DOT fsf AT mercury DOT st DOT hmc DOT edu>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 18
X-Trace: /wLwTfA6H/gBgUIf5MNpJN4/h8fmraJPDkGg5a0Gzgl0xU2hARC3sE2xQtKDqd0cqcAEGG3+hxFh!hq85qS4DKRIWIlDiJGngEnz7UbCF8fbqFYr4H+TX8iXxesD/sgtbSyOxYXMLR/RRksFwXE9vKtMG!cvq9
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 11 Apr 2000 14:22:54 GMT
Distribution: world
Date: Tue, 11 Apr 2000 14:22:54 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On 10 Apr 2000 12:54:17 -0700, Nate Eldredge <neldredge AT hmc DOT edu>
wrote:

>According to ANSI, fflush(stdin) has undefined behavior, so
>technically, no matter what happens, DJGPP is still correct.  In
>practice, it just does nothing (IIRC).
>
>But that doesn't help you.  What did you want to accomplish by this?

I'd assume OP wants to bypass the line buffering of stdin.

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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