Skip to content
/ hexdump Public

printf utility i use to debug memory related c softwares.

Notifications You must be signed in to change notification settings

hsn93/hexdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

printf utility i use to debug memory related c softwares.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages