From: Martin Str|mberg Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with scanf Date: Thu, 19 Jul 2001 20:30:55 +0000 (UTC) Organization: University of Lulea, Sweden Lines: 9 Message-ID: <995574655.301659@queeg.ludd.luth.se> References: <9j7bsc$ilg$1 AT newsg4 DOT svr DOT pol DOT co DOT uk> X-Trace: news.luth.se 995574655 19566 130.240.16.109 (19 Jul 2001 20:30:55 GMT) X-Complaints-To: abuse AT luth DOT se User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m)) Cache-Post-Path: queeg.ludd.luth.se!unknown AT father DOT ludd DOT luth DOT se X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com mike wrote: : fflush(stdin); This invokes undefined behaviour. You probably want "fflush(stdout);". Right, MartinS