一、测试代码
测试代码如下所示:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void getmemory(char *p)
{
p=(char *)malloc(100);
strcpy(p,"helloworld");
return;
}
void test1_printf()
{
printf("aefawfaeeaa /n");
return;
}
void test1_printf2()
{
int bbb = 0x5555;
printf("test = %d /n",bbb);
return;
}
void test1_printf3()
{
printf("aefawfaeeaa /n");
return;
}
void test1_printf4()
{
int bbb = 0x5555;
printf("test = %d /n",bbb);
return;
}
void teswtaaaaa(void )
{
char*str=NULL;
getmemory(