Date: Tue, 7 Nov 2000 08:57:56 -0700 From: Bill Currie 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; 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 Precedence: bulk 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