可变参数的使用
www.zhaoch.top > 编程 > c_cpp
可变参数使用
void fatal_error(const char *fmt, ...)
{
va_list l;
va_start(l, fmt);
vfprintf(stderr, fmt, l);
va_end(l);
fprintf(stderr, "\n");
} ## The End
- My github location
- View Source of this website GhostZch.github.io
- Commit issues to discuss with me and others