Hi, i am working on a project that involves converting 8-bit hex numbers into integer.
Firt, I have to say that my hex number is not a number right now, it is only a bunch of characters.
for example:
int d;
char code[9];
code="FFFFFF01";
d=strtol(code,NULL,16);
when I try to printf intger d, it never gives me negative numbers.
Anyone has any idea?
Thanks in advance.
Fatih