Date: Mon, 10 Mar 1997 17:25:28 +0200 (IST) From: Eli Zaretskii To: Alaric Dailey cc: djgpp AT delorie DOT com Subject: Re: djgpp bug? In-Reply-To: <5g0nmc$k4k@nntp.novia.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 10 Mar 1997, Alaric Dailey wrote: > the following file compiles and runs perfectly under linux gcc and Turbo C > for dos however when you compile it under djgpp it skips it skips entering > the keyword. This is an example program from a book that I have modified > because it didn't work correctly under gcc. Imagine my surprise when I > found out that it still doesn't work under djgpp. `fgets' is notorious for leaving `\n' in the buffer, and you can't fflush stdin (ANSI says that `fflush' is only defined for output streams; in DJGPP fflsuh(stdin) is a no-op).