内存申请讲解篇: http://blog.csdn.net/wangjiwei2010/article/details/1012018小例子:
#include <stdio.h>
void func(char **p)
{
*p = malloc(100);
strcpy(*p, "this memory is allocated by pointer's pointer...");
}
int main()
{
char **exp = malloc(sizeof(char**));
func(exp);
printf("%s \n", *exp);
free(*exp);
free(exp);
return 0;
}