Mon, 23 May 2011 16:54:56 +0200
removed binary files from repository and added hgignore
universe@1 | 1 | #include "v2.h" |
universe@1 | 2 | #include "include.h" |
universe@1 | 3 | |
universe@1 | 4 | int checkArgument(const char* arg, const char* expected) { |
universe@1 | 5 | int len = strlen(expected); |
universe@1 | 6 | int ret = 0; |
universe@1 | 7 | |
universe@1 | 8 | if (arg[0] == '-') { |
universe@1 | 9 | if (arg[1] != '-') { |
universe@1 | 10 | for (int t = 0 ; t < len ; t++) { |
universe@1 | 11 | ret |= (strchr(arg, expected[t]) > 0) << t; |
universe@1 | 12 | } |
universe@1 | 13 | } |
universe@1 | 14 | } |
universe@1 | 15 | |
universe@1 | 16 | return ret; |
universe@1 | 17 | } |