Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles; site smu.UUCP Path: utzoo!watmath!clyde!floyd!vax135!houxz!houxm!ihnp4!inuxc!pur-ee!uiucdcs!smu!pedz From: pedz@smu.UUCP Newsgroups: net.unix-wizards Subject: Re: Re: Re: getc() != EOF; -1 byte in fi - (nf) Message-ID: <18600014@smu.UUCP> Date: Thu, 14-Jun-84 13:40:00 EDT Article-I.D.: smu.18600014 Posted: Thu Jun 14 13:40:00 1984 Date-Received: Fri, 22-Jun-84 05:49:35 EDT References: <5836@mcvax.UUCP> Lines: 11 Nf-ID: #R:mcvax:-583600:smu:18600014:000:351 Nf-From: smu!pedz Jun 14 12:40:00 1984 #R:mcvax:-583600:smu:18600014:000:351 smu!pedz Jun 14 12:40:00 1984 This is not true at all. getch is defined to return a value which is not a legal character value upon encountering EOF. This value is what is defined as EOF in the stdio.h. Although it is generally true that EOF is -1 it is not defined to be such by the language and any program which tests for -1 instead of EOF is wrong! Perry convex!smu!pedz