delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/10:45:58

Date: Mon, 10 Mar 1997 17:25:28 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alaric Dailey <alaric AT oasis DOT novia DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: djgpp bug?
In-Reply-To: <5g0nmc$k4k@nntp.novia.net>
Message-ID: <Pine.SUN.3.91.970310172353.29057G-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019