Date: Sun, 18 Apr 1999 14:25:59 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: | õ¿õ | õ¿õ | õ¿õ | õ¿õ | cc: djgpp AT delorie DOT com Subject: Re: Newbie?? In-Reply-To: <37195F11.D27CC860@mbox2.singnet.com.sg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id GAA11986 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 Sun, 18 Apr 1999, | õ¿õ | õ¿õ | õ¿õ | õ¿õ | wrote: > in school, i learn to use fflush(stdin), and i know that > this do not do anything in DJGPP. Can someone tell me how to flush the > input buffer?? Try this: char junk[16*1024 + 1]; scanf("%[^\n][\n]", junk); Using fflush for this is a bad habit; I suggest to un-learn it ;-).