I work a lot with network and serial communications software, so it is often necessary for me to have code to display or log hex dumps of data packets.
Every time I
Just in case someone finds it useful...
I've found single function implementation for ascii/hex dumper in this answer.
A C++ version based on the same answer with ANSI terminal colours can be found here.
More lightweight than xxd.