AnsweredAssumed Answered

Coldfire: simple question of C string

Question asked by Nouchi on Oct 6, 2006
Latest reply on Oct 9, 2006 by CompilerGuru
Hi,
 
I'm using CW 6.3 for ColdFire. Somebody can tell me if I am in the wrong way or it's a bug?
I declare this:
const uint8 myString[] = "\x151234567890";
what I want : 0x15,0x31,0x32,.......
and I get : 0x90,0x00
If I do that:
const uint8 myString[] = "\x15 1234567890";
and I get : 0x15,0x20,0x31,............
const uint8 myString[] = "123\x154567890";
and I get : 0x31, 0x32, 0x33, 0x90,0x00
 
 
Emmanuel

Message Edited by CrasyCat on 2007-04-13 01:42 PM

Outcomes