Introduce examples dir
[lcapit-junk-code.git] / examples / C / argv.c
blob03df178f5607a77abf9fe6e4ba9b48b5b782dceb
1 /*
2 * Print all the command-line arguments
3 */
4 #include <stdio.h>
6 int main(int argc, char *argv[])
8 int i;
10 for (i = 0; i < argc; i++)
11 printf("argv[%d]: %s\n", i, argv[i]);
13 return 0;