For example, I have
I want to pass in 2 types: INFO("str") and INFO("str, %d", int). For the 2 types, shall I tell if ap is empty?Code:void INFO(const char* fmt, ...){
char buf[1024]
va_list ap;
vsnprintf(buf, 1024, fmt, ap);
va_end(ap);
return;
}