csci4061/p1-code/test_args.c

10 lines
175 B
C
Raw Normal View History

2018-01-29 23:28:37 +00:00
#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;
}