How to use va_list correctly in a sequence of wrapper functions calls?

巧了我就是萌 提交于 2019-12-02 12:37:43

You can't pass va_list to a function expecting ..., unless that function (of course) expects a va_list in the variable-arguments part. Your code clearly does not.

You need to explicitly accept a va_list argument into printDebugMsg(), since that's what you're passing. See for instance vprintf() which solves this problem for the printf() family.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!