News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

What are these "\002", "\252" I'm observing when debbuging?

Started by Léa Massiot, September 16, 2012, 06:07:04 PM

Previous topic - Next topic

Léa Massiot

Hello,

Thank you for reading my post and sorry for the lame thread title.

I am manipulating bytes arrays like for instance:
char bytesArray[10];

When I debug my code and visualize the contents of such an array using the C::B "Watch" functionality, I observe such "things" as:
"\002", "\252", etc.

If I do a:
printf("B0 = %x\n", bytesArray[i] & 0xff);
where i is the index of the char "\252" in bytesArray,
I get AA16 which is what I'm expecting.

Yet, I don't understand what is this "\252" code. What is it?
Given such a "code", how can I manually get the corresponding hexadecimal and even binary form?
I there a table somewhere? Does this table have a name?


Thank you for helping.
Best regards.

Léa Massiot


Freem

If you use watches, you can "convert" it to hexadecimal or decimal in it's properties. (right click on the watch, properties, then specify something in format)

Léa Massiot