source: branches/libc-0.6/src/emx/testcase/misc/spawn.c

Last change on this file was 2201, checked in by bird, 20 years ago

..

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 278 bytes
Line 
1#include <process.h>
2#include <sys/wait.h>
3#include <stdio.h>
4#include <string.h>
5
6
7int main(int argc, char **argv)
8{
9 int i;
10 pid_t pid = spawnvp(0, argv[1], &argv[1]);
11 printf("pid=%d\n", pid);
12 pid = wait(&i);
13 printf("pid=%d i=%d\n", pid, i);
14 return 0;
15}
Note: See TracBrowser for help on using the repository browser.