摘要: 空指针和传参问题1) 段错误。形参改为二级指针即可void GetMemory( char *p ){ p = (char *) malloc( 100 );}void Test( void ){char *str = NULL;GetMemory( str );strcpy( str, "hel... 阅读全文
posted @ 2014-07-11 12:21 aitao 阅读(724) 评论(0) 推荐(0) 编辑