38:7ded3ec4c417 | 39:4761bc1b0278 |
---|---|
37 int ret = 0; | 37 int ret = 0; |
38 | 38 |
39 if (arg[0] == '-') { | 39 if (arg[0] == '-') { |
40 if (arg[1] != '-') { | 40 if (arg[1] != '-') { |
41 for (int t = 0 ; t < len ; t++) { | 41 for (int t = 0 ; t < len ; t++) { |
42 ret |= (strchr(arg, expected[t]) > 0) << t; | 42 ret |= (strchr(arg, expected[t])?1:0) << t; |
43 } | 43 } |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 return ret; | 47 return ret; |