Hexdump code from http://sws.dett.de/mini/hexdump-c/
