如何将函数指针传递给具有可变参数的函数? [英] How to pass a function pointer to a function with variable arguments?
本文介绍了如何将函数指针传递给具有可变参数的函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道该怎么做!
如何在va_list参数中获取函数指针?
非常感谢.
I don't know how to accomplish this!
how to get the function pointer in va_list arguments?
thanks so much.
推荐答案
使用typedef作为函数指针类型.
Use a typedef for the function pointer type.
这篇关于如何将函数指针传递给具有可变参数的函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文