2007-01-02

To print the memory content by C

关键字: C
void* content = malloc(16);

// assume there are somethings in "content"

unsigned char* p = (unsigned char*)content;

for (int i = 0; i < 16; i++){

printf("%2X", p[i]);

}

Unforunately, I did not find a C API just like memDump(void* point, int size).
评论
发表评论

您还没有登录,请登录后发表评论

jbaggio
搜索本博客
最近加入圈子
最新评论
评论排行榜