摘要: 根据测试 int main() { int a = 4; void *p = (void*)malloc(sizeof(100)); char *p1 = (char*)malloc(sizeof(100)); int n1 = sizeof(a); int n2 = sizeof(p); // i 阅读全文
posted @ 2019-12-20 16:51 strive-sun 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdint.h> #include <stdlib.h> void hexDump(void *ptr, char *buf) { static char hex[16] = { '0', '1', '2', '3', '4', '5', 阅读全文
posted @ 2019-12-20 16:41 strive-sun 阅读(756) 评论(0) 推荐(0) 编辑