| delorie.com/archives/browse.cgi | search |
| Date: | Thu, 8 Jul 1999 10:00:19 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Christopher Nelson <paradox AT gye DOT satnet DOT net> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Flushing input stream? |
| In-Reply-To: | <01bec8b5$11218dc0$LocalHost@thendren> |
| Message-ID: | <Pine.SUN.3.91.990708095903.21287L-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Wed, 7 Jul 1999, Christopher Nelson wrote: > while(getc()!=EOF); This won't help, because `getc' will stall inside the DOS input function, after it consumed all the buffered characters. What the original poster wanted is a way to empty the buffered characters, and then return control to the main function, so it could proceed with reading new input.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |