#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include "test.h"
using namespace std;
//*********************************************************************************
//FUNCTION:
void print()
{
cout << "print is called!" << endl;
}
void fun()
{
cout << "fun is called!" << endl;
}
static void (* _malloc_alloc_oom_handle)() = NULL;
static void (* set_malloc_handle(void (*f)()))() //必须返回一个void _fun(void) 的函数指针, 或者根本不返回
{
void (* old)() = _malloc_alloc_oom_handle;
_malloc_alloc_oom_handle = f;
return (old);
}
//*********************************************************************************
//FUNCTION:
void putString(char *p)
{
if (NULL == p)