🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #920

Re: `C' type question...

#920
From: Stephen B Coy
Date: Tue, 10 Jul 1990 16:13
14 lines
903 bytes
In article <26854@netnews.upenn.edu>, weisen@eniac.seas.upenn.edu (Neil Weisenfeld) writes:
>       *mem++=(*str)?(*str++):ACTUAL_SPACE;
> 
> The *mem++= line gets the error.  Since everything is a char, I'm not
> sure what the problem is.

K&R Classic p. 39 "...every char in an expression is automatically
converted to and int."  Casting ACTUAL_SPACE to char should clear up
the warning.

Stephen Coy
uw-beaver!ssc-vax!coy

			Brain dead is forever.
Technical Details
Message-ID: <3437@ssc-vax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!mit-eddie!uw-beaver!fluke!ssc-vax!coy
References: <26854@netnews.upenn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!mit-eddie!uw-beaver!fluke!ssc-vax!coy
From: coy@ssc-vax.UUCP (Stephen B Coy)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: `C' type question...
Summary: 'C` type answer
Message-ID: <3437@ssc-vax.UUCP>
Date: 10 Jul 90 16:13:23 GMT
References: <26854@netnews.upenn.edu>
Distribution: usa
Organization: Boeing Aerospace & Electronics, Seattle WA
Lines: 14