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