头文件中的“ ...”参数是否需要包含stdarg.h?

问题描述

#ifndef WHATEVER_H
#define WHATEVER_H

void test(const char *format,...); // would you have to #include <stdarg.h> for ... on argument,or is it ok if you don't use it

#endif // WHATEVER_H

因此,如果我要拥有这样的头文件,并且需要将...作为我的void test函数的参数,我是否必须为{{1 }}的论点,还是不是必须的?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)