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 >
Wrap
C/C++ Source or Header
|
1994-09-30
|
641b
|
22 lines
#include <string.h>
void ProcessCmdLine(int ac, char *av[])
{
short ctr;
if (ac > 1)
{
for (ctr = 1; ctr < ac; ctr++)
{
if ((!strcmpi(av[ctr], "-PORT")) || (!strcmpi(av[ctr], "/PORT")))
od_control.use_port = TRUE;
else if ((!strcmpi(av[ctr], "-NICE")) || (!strcmpi(av[ctr], "/NICE")))
od_control.od_timing = TIMING_NICE;
else if ((!strcmpi(av[ctr], "-NASTY")) || (!strcmpi(av[ctr], "/NASTY")))
od_control.od_timing = TIMING_NASTY;
/* Add other "else if's" here, e.g. "/N" for node #.... */
}
}
}