函数名: spawnl
功 能: 创建并运行子程序
用 法: #include <process.h>
int spawnl(int mode, char *pathname, char *arg0, arg1, ... argn, NULL);
程序例:
#include <process.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
int result;
clrscr();
result = spawnl(P_WAIT, "tcc.exe", NULL);
if (result == -1)
{
perror("Error from spawnl");
exit(1);
}
return 0;
}