Created
October 7, 2014 15:16
-
-
Save mrpossoms/45410132aa83933459f5 to your computer and use it in GitHub Desktop.
Mem dump
This file contains hidden or 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 __dump(void* buf, int len){ | |
int i = 0; | |
for(i = 0; i < len; i++){ | |
char str[16]; | |
sprintf(str, "%02x ", ((char*)buf)[i] & 0xff); | |
write(1, str, strlen(str)); | |
}write(1, "\n", 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment