I am reading hex value from strings like
char *str = "0xF";
Now I want to store this value in an int
type to pass that int variable in the function. What would be the correct method to do it?
*Edit*I dont want to convert this from hex to decimal but the function requires value in form of hex only. So i want to change this char* into int.