Command line parameters in a C program are passed in via the argv array, and an additional parameter, argc, which contains the count of the items in the array.
A C program invoked such as " test a b c" will have an argc count of 4 and the argv array will look like:
argv = test
argv = a
argv = b
argv = c
For a more complete answer see: http://www.crasseux.com/books/ctutor...-and-argv.html