Mail Archives: djgpp/1997/03/10/10:45:58
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).
- Raw text -