// ------------------
#include <stdarg.h>
void WriteFrmtd(char *format, ...) {
va_list args;
va_start(args, format);
vprintf(format, args);
va_end(args);
}
int main () {
WriteFrmtd("%d variable argument/n", 1);
WriteFrmtd("%d variable %s/n", 2, "arguments");
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265229.html