````````````````````````````````````````
函数名: spawnl
功 能: 创建并运行子程序
用 法: 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;
}
就是这个``````````````详细解释
大家顺便解释一下
int spawnl(int mode, char *pathname, char *arg0, arg1, ... argn, NULL);
里面的各个型参都是用来干什么的。
谁来回答啊?
谢谢
[此贴子已经被作者于2007-8-16 22:16:33编辑过]