Re: [cc65]Unusuall?

Date view Thread view Subject view

From: Michael Pfeiffer (michael.pfeiffer_at_utanet.at)
Date: 2001-01-01 10:55:12


Hi Troy,

>for(;((c=*value)!=39||(c=*value)!=62);)
>{
>	printf("%d",c);
>}
>
The loop condition is not correct, it must be:

for(;((c=*value)!=39 && (c=*value)!=62);) {...}

The condition fails when either *value == 39
or *value == 62, so you could write it also:

for(;!((c=*value)==39 || (c=*value)==62);) {...}

Michael

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:37 CET