I am having the hexadecimal value in unsigned char and i am not finding any way to change this hexadecimal value as integer. Please assist on this.
unsigned char c = '0x01';
int convertasint = (int)c;//not working
int convertasint1 = (atoi)c;//not working
Please guide me how to achieve this.