-Karamja-
asked on
unsigned char getting cutshort
Hello,
I have a small problem,
I have a array of unsigned char, for example lets say this,
0x11 0x22 0x33 0xFF 0x44
I then +1 to each of these using a for loop,
array[i] = array[i]+1;
So it looks like this,
0x12 0x23 0x34 0x00 0x45
But now it gets cut short because of the null char 0x00,
Is there anyway to overcome this problem?
I have a small problem,
I have a array of unsigned char, for example lets say this,
0x11 0x22 0x33 0xFF 0x44
I then +1 to each of these using a for loop,
array[i] = array[i]+1;
So it looks like this,
0x12 0x23 0x34 0x00 0x45
But now it gets cut short because of the null char 0x00,
Is there anyway to overcome this problem?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you show your code - and the location where you notice the problem ?
ASKER
Ok, I was being stupid :(
Your code triggered something in my head though so I guess the points are yours ;)
Your code triggered something in my head though so I guess the points are yours ;)