void foo(int fmt, ...)
{
}
//I hook foo
static void (*original_foo)(int fmt, ...);
void replaced_foo(int fmt, ...)
{
printf("Hooking");
va_list args;
va_start(args, fmt);
//do something
va_end(args);
//但是我想调用original_foo函数,//不知道怎么调用...
}
//Hook Function not include ...
Hook(foo, replaced_foo, (void **)&original_foo);