摘要: 考虑下面三段代码:片段1void GetMemory(char *p){p = (char *)malloc(100);}void Test(void){char *str = NULL;GetMemory(str);strcpy(str, "hello world");printf(str);fr... 阅读全文
posted @ 2014-06-14 19:04 fangying 阅读(178) 评论(0) 推荐(0) 编辑