Path: utzoo!attcan!uunet!super!rminnich From: rminnich@super.ORG (Ronald G Minnich) Newsgroups: comp.unix.wizards Subject: Re: How can I read keyboard without stopping Message-ID: <696@super.ORG> Date: 8 Sep 88 14:41:12 GMT References: <813@ms3.UUCP> <1246@mcgill-vision.UUCP> <669@super.ORG> <679@super.ORG> <13333@mimsy.UUCP> <690@super.ORG> <8422@smoke.ARPA> Sender: uucp@super.ORG Reply-To: rminnich@metropolis.UUCP (Ronald G Minnich) Organization: Supercomputing Research Center, Lanham, MD Lines: 12 In article <8422@smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >If that's true, it's a bug. EOF on a stream is not supposed to >close the stream, merely set the EOF indicator. In fact EOF oh, great, another portability. Well, after you pointed this out i realized it does vary a lot from machine to machine. I wrote a quicky to test it on SunOS 4.0 and it appears that the stream gets closed for you. I don't have the intestinal fortitude to test this out on our varied machines. I *really* don't want to know ... So, Rule Number One: the definition and side-effects of eof are about as well-defined in stdio as they are in Pascal. arg. ron