| delorie.com/archives/browse.cgi | search |
| From: | Chad R <Chad AT cascata DOT demon DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: EOF |
| Date: | Tue, 7 Nov 2000 13:27:10 +0000 |
| Organization: | RRP |
| Message-ID: | <OBOoiCAuMAC6EwBz@cascata.demon.co.uk> |
| 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 <m00Kp66V1$Mn4+sMCHGOMdQiAU> |
| 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
<neohkl AT cyberway DOT com DOT sg> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |