Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner From: braner@batcomputer.TN.CORNELL.EDU (braner) Newsgroups: net.micro.atari16 Subject: Re: bug in megamax C Message-ID: <1215@batcomputer.TN.CORNELL.EDU> Date: Wed, 15-Oct-86 11:08:25 EDT Article-I.D.: batcompu.1215 Posted: Wed Oct 15 11:08:25 1986 Date-Received: Thu, 16-Oct-86 05:57:00 EDT References: <609@imagen.UUCP> Reply-To: braner@batcomputer.UUCP (braner) Distribution: net Organization: Theory Center, Cornell University, Ithaca NY Lines: 12 Summary: NOT a bug!! [] EOF is NOT a char, not even an unsigned one. Also, all operations (e.g. the "c==EOF") are done with int's, not chars. Therefore you should declare c an int, as dictated by K&R in the bible... BTW, using chars, signed or unsigned, wastes time: it adds EXT.W to convert it into an int... (or the AND #0xFF if unsigned). Use the char type only for arrays, to save RAM. - Moshe Braner