delorie.com/archives/browse.cgi | search |
From: | Nate Eldredge <neldredge AT hmc DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: fflush(stdin); /*doesn't seem to work in dos? */ |
Date: | 10 Apr 2000 12:54:17 -0700 |
Organization: | InterWorld Communications |
Lines: | 16 |
Message-ID: | <83r9cdag0m.fsf@mercury.st.hmc.edu> |
References: | <6uhI4.60$ie DOT 11883 AT news DOT deakin DOT edu DOT au> |
NNTP-Posting-Host: | mercury.st.hmc.edu |
Mime-Version: | 1.0 |
X-Trace: | nntp1.interworld.net 955396688 78393 134.173.45.219 (10 Apr 2000 19:58:08 GMT) |
X-Complaints-To: | usenet AT nntp1 DOT interworld DOT net |
NNTP-Posting-Date: | 10 Apr 2000 19:58:08 GMT |
User-Agent: | Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
jacasey DOT invalid AT bajor DOT its DOT deakin DOT edu DOT au writes: > yeah as the subject says fflush(stdin); doesn't seem to work in dos or > djggp, any thoughts? 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? There is almost certainly a correct way to do it. -- Nate Eldredge neldredge AT hmc DOT edu
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |