功 能: 創建並運行子程式
用 法: 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;
}