http://www.cprogramming.com/tutorial/c/lesson14.html
int main( int argc, char *argv[])
This should be the declaration of your main function. argc
is the amount of arguments. argv[]
is an array that contains each command-line argument as a string, the program name is argv[0]
so the first argument will be argv[1]
. I'm not a C programmer, so this might not be good info, I highly recommend checking out the link.