Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
script3r
GitHub Repository: script3r/os161
Path: blob/master/user/testbin/pt4/pt4.c
734 views
1
#include <unistd.h>
2
#include <sys/wait.h>
3
#include <stdio.h>
4
#include <stdlib.h>
5
6
int main( int argc, char *argv[] ) {
7
const char *args[] = { "foo", "os161", "execv", NULL };
8
9
(void) argc;
10
(void) argv;
11
12
printf( "about to call execv\n" );
13
execv( "/testbin/pt5", (char **)args );
14
15
return 0;
16
}
17
18