Search:

Type: Posts; User: Moses

Search: Search took 0.01 seconds.

  1. Solved ...

    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...
  2. using command line arguments, which are not single chars

    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”....
Results 1 to 2 of 2