Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site ncoast.UUCP
Path: utzoo!linus!vaxine!wjh12!genrad!decvax!cwruecmp!atvax!ncoast!bsafw
From: bsafw@ncoast.UUCP (Brandon Allbery)
Newsgroups: net.unix-wizards
Subject: Re: getc() != EOF
Message-ID: <91@ncoast.UUCP>
Date: Sun, 3-Jun-84 21:10:35 EDT
Article-I.D.: ncoast.91
Posted: Sun Jun  3 21:10:35 1984
Date-Received: Wed, 6-Jun-84 02:44:59 EDT
References: <1970@rlgvax.UUCP>
Organization: North Coast XENIX, Cleveland
Lines: 19


	The local "lint" tells me that ((ch = getc ()) != EOF) is illegal on
IBM-based Cs.  This fits in with the (assumption) that an IBM/370 C would use
EBCDIC, NOT ASCII, and all 8 bits of the character data are significant, so
the ONLY way to trap an EOF would be the feof () function.  (OK, for normal
text files, 0xff is not normally used, but they may have thought they were
stretching it.  They don't use 0x0a either, usually, although I've never run
Unix on an IBM.)

-- 
--------------------------------------------------------------------------------

						Brandon Allbery
						decvax!cwruecmp!ncoast!bsafw
"...he himself being one universe's prime	MCI MAIL: 161-7070
example of utter, rambunctious free will!"	USMail (core dump):
							6504 Chestnut Road
							Independence, OH 44131