Skip to content

Instantly share code, notes, and snippets.

@m13253
Created September 11, 2014 16:20
Show Gist options
  • Select an option

  • Save m13253/98a2a7cf4a3ca86e1c38 to your computer and use it in GitHub Desktop.

Select an option

Save m13253/98a2a7cf4a3ca86e1c38 to your computer and use it in GitHub Desktop.
# Geordi memory dumper
geordi: {size_t s=0x400000;printf("0x%08zx: ",s);for(size_t p=s;p<s+64;p++){unsigned char c=*(const unsigned char *)p;printf((c>31&&c<127)?"%c":"\\x%02x",c);}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment