From: Chad R Newsgroups: comp.os.msdos.djgpp Subject: Re: EOF Date: Tue, 7 Nov 2000 13:27:10 +0000 Organization: RRP Message-ID: References: <3a03ddb1$1 AT news DOT starhub DOT net DOT sg> NNTP-Posting-Host: cascata.demon.co.uk X-NNTP-Posting-Host: cascata.demon.co.uk:212.228.99.185 X-Trace: news.demon.co.uk 973603698 nnrp-13:23337 NO-IDENT cascata.demon.co.uk:212.228.99.185 X-Complaints-To: abuse AT demon DOT net MIME-Version: 1.0 X-Newsreader: Turnpike Integrated Version 4.02 S Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <3a03ddb1$1 AT news DOT starhub DOT net DOT sg>, Michelle writes > >What is EOF char for me? > >I am using pentium 166MMX. >Is EOF OS dependen or HW dependent? > >TIA 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. -- Chad R