From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: gets() and scanf("%s", &crap) Date: Fri, 18 Jul 1997 07:07:37 -0400 Organization: Cornell University http://www.cornell.edu Lines: 18 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <33CF4E79.5982@cornell.edu> References: <33CE3B9D DOT FA878F7A AT sunchem DOT chem DOT uga DOT edu> Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0046.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Robert Herrick wrote: > > scanf("%s", &string) get missed. I have fflushed stdin before each > call to the input, but they still aren't performed. fflush is not defined for input strings. for more on this, take a look at the comp.lang.c faq. -- Sinan ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:sinan DOT unur AT cornell DOT edu C ^ http://www.people.cornell.edu/pages/asu1/ \ ~/ Unsolicited e-mail is _not_ welcome, and will be billed for. *******************************************************************