Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 723 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 723 Bytes

hexdump

printf utility i use to debug memory related c softwares.

this utility uses escape sequence for coloring, use it with modern terminal.

to do:

  • make highlight tokens (highlight specific data)
  • print ascii section option

quick start

code usage:

#include "hexdump.h"
int main(int argc, char *argv[])
{
  const char hello[] = "Hello World !";
  char *mem = malloc(512);
  if (NULL != mem){
    strcpy(mem + 10, hello);
    hex_dump_highlight(mem, 512, 10, sizeof(hello));
    free(mem);
  }
}

Hex dump of memory

Image

Hex dump with highlight functionality

Image