-
-
Save kostyll/e1294c59966ab21cb7dc179c21e653b2 to your computer and use it in GitHub Desktop.
C memdump
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 memdump(void* s, size_t n) | |
{ | |
for (size_t i = 0; i < n; ++i) | |
printf("%x ", *((unsigned char*) (s + i)) ); | |
printf("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment