Date: Wed, 19 Nov 1997 10:49:50 +0200 (IST) From: Eli Zaretskii To: Elvis Dieguez cc: DJGPP Mail Group Subject: Re: Scanf Function and EOF In-Reply-To: <34726566.7BE99635@ibm.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 18 Nov 1997, Elvis Dieguez wrote: > I wrote a simple While-loop that scans in some strings until the EOF > marker is reached (or Cntrl-D is pressed). The loop works correctly > when compiled on a Unix compiler but refuses to do so when compiled with > DJGPP. On DOS, Ctrl-D is NOT an EOF character. Press Ctrl-Z and you should see the same behavior as on Unix.