12 lines
218 B
C
12 lines
218 B
C
|
// Print all the arguments in the argv array
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(int argc, char *argv[]){
|
||
|
printf("%d args received\n",argc);
|
||
|
for(int i=0; i<argc; i++){
|
||
|
printf("%d: %s\n",i,argv[i]);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|