src/arguments.c

changeset 39
4761bc1b0278
parent 36
a7ff583e153f
child 48
0d2c13c24fd0
equal deleted inserted replaced
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;

mercurial