Have a look at the code on this page:

http://en.wikibooks.org/wiki/A_Little_C_Primer/C_Command_Line_Arguments

In particular, look at cparse.c.

If you google "c argv" you'll find a lot of other code 
examples. :-)

David

Reply via email to