Parsing arguments
Posted: Sun Mar 29, 2009 9:00 pm
So I'm parsing the command line arguments for my rwfs prog. For some reason, it only gets the first "-d" + args. I'm not giving you the actual code within the switch(there is a lot of it). Help appreciated.
Code: Select all
for(int i = 1; i<argc; i++)//parse arguments
{
int charc = 0;
switch(argv[i][0])
{
case '-':
charc++;
switch(argv[i][1])
{
}
}//done with all that parsing crap, lets do some work!