I have an int variable that contains an hex number like this 084c2365. And I want to convert the first byte(65) into a decimal number (101).
But I get an error at compilation the says that the 1st argument from sscanf is not an "const char *".Code:char c; int num; //Num has the value 084c2365 int result; c=(char)num; //c gets the value from the firts byte (65) sscanf(c, "%x", &result);
How can i fix this??