Quote Originally Posted by Richard.J View Post
instead of taking an int as argument, my guess would be to use an unsigned char.
Hexadecimal is just a different representation of the underlying data type - may it be an integer, character, pointer etc.