Thanks ... Now it looks like below, and works perfect:
strcpy(cmd,argv[1]); // copy to string 'short name' variable
for (i=0; cmd[i]; i++)
cmd[i] = tolower(cmd[i]); // make it all...
Type: Posts; User: Moses
Thanks ... Now it looks like below, and works perfect:
strcpy(cmd,argv[1]); // copy to string 'short name' variable
for (i=0; cmd[i]; i++)
cmd[i] = tolower(cmd[i]); // make it all...
Dear forum
I would like to read parameters from the command line. I would like to give a parameter that controls the overall mode of the program, valid modes are “count”, “head”, “stat” and “CSV”....