I have a nice C++ function, which supports multiple arguments through va_list + va_start + va_arg. But I had to convert my project to C. After conversion, this va_list construction gets rejected by the compiler (multiple errors). Is there any way to do that thing in C, and (if yes) what I need to change?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The Wikipedia page on stdarg has probably everything you need.