home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / dr2v41b1.zip / CMDLINE.C next >
C/C++ Source or Header  |  1994-09-30  |  641b  |  22 lines

  1. #include <string.h>
  2.  
  3. void ProcessCmdLine(int ac, char *av[])
  4.    {
  5.    short ctr;
  6.  
  7.    if (ac > 1)
  8.       { 
  9.       for (ctr = 1; ctr < ac; ctr++)
  10.          {
  11.          if ((!strcmpi(av[ctr], "-PORT")) || (!strcmpi(av[ctr], "/PORT")))
  12.             od_control.use_port = TRUE;
  13.          else if ((!strcmpi(av[ctr], "-NICE")) || (!strcmpi(av[ctr], "/NICE")))
  14.             od_control.od_timing = TIMING_NICE;
  15.          else if ((!strcmpi(av[ctr], "-NASTY")) || (!strcmpi(av[ctr], "/NASTY")))
  16.             od_control.od_timing = TIMING_NASTY;
  17.          /* Add other "else if's" here, e.g. "/N" for node #.... */
  18.          }
  19.       }
  20.    }
  21.  
  22.