![]() ![]() | ![]() |
version 1.2, 2001/07/02 20:15:07 | version 1.3, 2001/07/26 16:10:01 | ||
---|---|---|---|
|
|
||
int i, tc; | int i, tc; | ||
char buf[256], *scriptfile = NULL, *tp, *tv[MAXTOKENS]; | char buf[256], *scriptfile = NULL, *tp, *tv[MAXTOKENS]; | ||
while ((i = getopt(ac, av, "1234c:d:f:Hhs:")) != -1) { | while ((i = getopt(ac, av, "0123f:s:h")) != -1) { | ||
switch (i) { | switch (i) { | ||
case '0': | |||
case '1': | case '1': | ||
case '2': | case '2': | ||
case '3': | case '3': | ||
case '4': | port = i - '0'; | ||
port = i - '1'; | |||
break; | break; | ||
case 'f': | case 'f': | ||
scriptfile = optarg; | scriptfile = optarg; |