69,373
社区成员
发帖
与我相关
我的任务
分享
void f(const char *fmt, ...)
{
void *start=fmt+sizeof(fmt); // 有可能是-,这个和压栈顺序有关系
// 例如windows下__cdecl / __stdcall
// analysis fmt
// 例如 %d 则取 *(int*)start; start=(char*)start+4;
// process ..
}