From: "Fitzpatrick, Joe" <[EMAIL PROTECTED]>
> You can just cast the literal in the StrPrintF call instead of using an
> intermediate variable:  StrPrintF(display_string, "%s:%c:%s", "str1",
> (char)'R', "str");

So, the interesting question that arises is: why is it that CodeWarrior
appears to know to treat 'R' as a Char (making a typecast unnecessary) but
GCC treats it as in int (thus requiring a typecast)?  In other words, why is
'R' 1 byte in CodeWarrior but not 1 byte in GCC?



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to