64,646
社区成员
发帖
与我相关
我的任务
分享
#include <stdarg.h>
inline void LogInfo(char* argument,...)
{
char* str;
va_list vl;
str=argument;
va_start(vl,argument);
do
{
printf ("%s\n",str);
str=va_arg(vl,char*);
}
while (str!=NULL);
va_end(vl);
}
void main()
{
LogInfo ("First","Second","Third","Fourth",NULL);
}