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/
- StrPrintF bug? Fredrik Jagenheim
- Re: StrPrintF bug? Adam Wozniak
- RE: StrPrintF bug? Fitzpatrick, Joe
- Re: StrPrintF bug? Steve Sabram
- StrPrintF Bug? Thomas Ward
- RE: StrPrintF Bug? Craig Thrall
- Re: StrPrintF Bug? Richard Burmeister
- Re: StrPrintF Bug? Thomas Ward
- RE: StrPrintF Bug? Fitzpatrick, Joe
- Re: StrPrintF Bug? Roger Chaplin
- RE: StrPrintF Bug? Richard Burmeister
- RE: StrPrintF Bug? Fitzpatrick, Joe
- Re: StrPrintF Bug? John Marshall
- Re: StrPrintF Bug? Gee Ng
- Re: StrPrintF Bug? palm
- Re: StrPrintF Bug? Adam Wozniak
- Re: StrPrintF Bug? krollin
- RE: StrPrintF Bug? Thomas Ward
- RE: StrPrintF Bug? Scott L. Johnson
- Re: StrPrintF Bug? Adam Wozniak
- RE: StrPrintF Bug? Fitzpatrick, Joe
