help please, i don't know why this doesn't work, what i am trying to do it when it is case 'f', it will get the names from the command line that the user entered like "hw6 -f john smith 10/21/2002 the rock 02/19/2000" then get the word john smith and the rock and capitalize the first letter of the word and print them.
case 'f':
c = argv[x];
while (c != '\0')
{
lastname [a] = argv[x+1];
firstname [b] = argv[x];
a++;
b++;
printf ("last name is %s and first name is %s", lastname , firstname);
c = argv [x+3];
}
break;