Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site asgb.UUCP Path: utzoo!watmath!clyde!akgua!sdcsvax!bmcg!asgb!tony From: tony@asgb.UUCP Newsgroups: net.unix-wizards Subject: Re: getchar() question in 4.2 Message-ID: <468@asgb.UUCP> Date: Tue, 1-May-84 11:05:00 EDT Article-I.D.: asgb.468 Posted: Tue May 1 11:05:00 1984 Date-Received: Wed, 2-May-84 06:20:38 EDT References: <12654@sri-arpa.UUCP> Organization: Burroughs Corporation, San Diego Lines: 13 The stdio library was modified in 4.2 so that an EOF condition is not cleared as it used to be on subsequent reads from a tty. That breaks a lot of things that used to act intelligently on EOF (learn, for example). The easiest fix is to call "clrerr(stdin)" when an EOF is detected to reset the condition. Further reads should then work. I don't know what the rationale for this change was, but it's probably safer to fix the things it affects than to revert to the old behavior of stdio. Tony Andrews Burroughs Corp. ihnp4!sdcrdcf!bmcg!asgb!tony