char hex[] = "6A"; // here is the hex string
int num = (int)strtol(hex, NULL, 16); // number base 16
printf("%c
", num); // print it as a char
printf("%d
", num); // print it as decimal
printf("%X
", num); // print it back as hex