even pointers? as long as not NULL?.. i never used that.. thanks alok > -----Original Message----- > From: Bob Ammerman [SMTP:RAMMERMAN@PRODIGY.NET] > Sent: Friday, January 26, 2001 8:05 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [OT]: quick question on C > > > come to think of it, after taking a 2nd look at that statement - i think > it > > really means: > > > > for (pass=rx_str[ptr1+1]; ptr1 > Well, first, you probably meant to say 'pass==1'. > > > beacuse we are dealing with a boolean AND, therefore for pass to be > 'true' > it > > must equals 1. makes sense? > > But now, a numeric or pointer type is treated as true as long as it is > non-zero (non-null for pointers) > > Bob Ammerman > RAm Systems > (contract development of high performance, high function, low-level > software) > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads