Date: Thu, 8 Jul 1999 10:00:19 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Christopher Nelson cc: djgpp AT delorie DOT com Subject: Re: Flushing input stream? In-Reply-To: <01bec8b5$11218dc0$LocalHost@thendren> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.