system函数的作用是什么? 80 次浏览 C标准stdlib.h包含system函数,原型是int system(const char *command); 它是为了简化程序员开启执行一个程序,不需要用复杂的fork/exec/wait, system函数会创建新进程,并等待它的完成。