Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
script3r
GitHub Repository: script3r/os161
Path: blob/master/user/testbin/pt5/pt5.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
int i;
8
9
printf( "\ngot %d arguments\n", argc );
10
printf( "the address of argv is: %p\n", argv );
11
12
for( i = 0; i < argc; ++i )
13
printf( "argv[%d] = %s\n", i, argv[i] );
14
15
return 0;
16
}
17
18