This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void hexdump(const void* data, size_t size) { | |
size_t j; | |
size_t i; | |
#define nexti (i + 1) | |
const uint8_t wrap = 16; | |
char ascii[wrap + 1]; | |
memset(ascii, 0, sizeof(ascii)); | |
for (i = 0; i < size; ++i) { |
OlderNewer