70,039
社区成员
发帖
与我相关
我的任务
分享
#include <malloc.h>
void myfree(void **ppuff)
{
if (NULL != ( int *)(*ppuff ) )
{
free( ( int * )(*ppuff) );
*ppuff = NULL;
}
}
int main(int argc, char* argv[])
{
void *x;
myfree(&x);
printf("Hello World!\n");
return 0;
}