Hex string to binary bytes conversion function

I’ve been working on an assembler for the byte-code to a virtual machine for a few days. During this process, I encountered the need to convert  hex strings such as “AFEE5C” to their binary equivalent, each 8-bit hex value (eg. “FF”) being single bytes equivalent to a single char in C. So I wrote a […]