delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/07/10:58:44

Date: Tue, 7 Nov 2000 08:57:56 -0700
From: Bill Currie <bill AT taniwha DOT org>
To: djgpp AT delorie DOT com
Subject: Re: EOF
Message-ID: <20001107085756.B17227@taniwha.org>
Mail-Followup-To: djgpp AT delorie DOT com
References: <3a03ddb1$1 AT news DOT starhub DOT net DOT sg> <OBOoiCAuMAC6EwBz AT cascata DOT demon DOT co DOT uk>
Mime-Version: 1.0
X-Mailer: Mutt 1.0.1i
In-Reply-To: <OBOoiCAuMAC6EwBz@cascata.demon.co.uk>; from Chad@cascata.demon.co.uk on Tue, Nov 07, 2000 at 01:27:10PM +0000
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, Nov 07, 2000 at 01:27:10PM +0000, Chad R wrote:
> If you are asking about EOF in relation to quitting a simple program
> with a loop such as:
> 
>         while ((c = getchar()) != EOF)
> 
> you could try entering Ctrl-Z and then pressing ENTER on your keyboard.
> I don't know if this would be the same for all systems, but I think it
> should work under DOS.

Ctrl-D (normally, it can be changed) in *nix, and no enter: it's immediate (in
my experience).

Bill
-- 
Leave others their otherness. -- Aratak

- Raw text -


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