Chinaunix

标题: c中的process.h 干什么用的? [打印本页]

作者: wangs11b    时间: 2008-08-20 11:41
标题: c中的process.h 干什么用的?
#include <stdio.h>
#include <process.h>

void main(void)
{
   char *env[] = { "FILENAME=SPAWNVXX.C", "OS=DOS",
                   "ROUTINES=SPAWNVXX", NULL };

   char *argv[] = { "CHILD.EXE", "AAA", "BBB", NULL };

   spawnv(P_WAIT, "CHILD.EXE", argv);
   spawnve(P_WAIT, "CHILD.EXE", argv, env);
   spawnvp(P_WAIT, "CHILD.EXE", argv);
   spawnvpe(P_WAIT, "CHILD.EXE", argv, env);
}



看不懂,具体干什么,能讲一下吗?
作者: Kevin_zqw    时间: 2008-08-20 13:21
process.h is a C header file which contains function declarations and macros used in working with threads and processes. Neither the header file nor the functions are defined by either the ANSI/ISO C standard or by POSIX. Most C compilers that target DOS, Windows 3.1x, Win32, OS/2, Novell NetWare or DOS extenders supply this header and the library functions in their C library.
作者: Kevin_zqw    时间: 2008-08-20 13:23
spawnv, spawnve, spawnvp, spawnvpe

load and execute a new child process. Parameters are passed as an array of pointers.

DOS,Win,OS/2




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2