🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #2323

Re: bug in megamax C

#2323
From: braner
Date: Wed, 15 Oct 1986 15:08
12 lines
1010 bytes
[]

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
Technical Details
Message-ID: <1215@batcomputer.TN.CORNELL.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rochester!cornell!batcomputer!braner
References: <609@imagen.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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!!