-
Hex Chars to Binary
Alright, i have a problem here. somehow i need to exclusive or the decimal number 111 and the hex number F6E together. Both are stored as char arrays.
I assume this means converting both values to binary values and then doing the operation, which is really where i am running into trouble. Also once i get the exclusive or value it needs to be converted back to a string of hex chars for use later.
any help would be appreciated.
-
-
sscanf() to convert to binary and snprintf() to convert back to a string.