Reading ascii in hexadecimal, need it in decimal.

it does not compile with strtoul()
it says invalid conversio from 'char' to 'const char'.