#include
#include
#include
void GetMemory(char *p, int len)
{
p = (char *)malloc(len);
}
void Test(void)
{
char *p = NULL;
GetMemory(p, 100);
strcpy(p, "hello world");
printf("%s\n", p);
}
int main(void)
{
Test();
return 0;
}