csci4061/p1-code/test_args.c
Michael Zhang 041f660ccd
f
2018-01-29 17:28:37 -06:00

9 lines
175 B
C

#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 argc;
}