#include
// Command-line arguments are given to your program as an array of strings.
// Try running this program like
// ./cmd_args one two three
// then, after it runs, do this:
// echo $?
// it will print a number. the number will be the number of arguments - look
// at the end of main!
int main(int argc, char** argv)
{
printf("I got %d arguments\n", argc);
for(int i = 0; i < argc; i++)
printf("argv[%d] = '%s'\n", i, argv[i]);
// then we'll return argc as the program's return value.
return argc;
}