Returns index of argument sought, or 0 if not found
| 84 | |
| 85 | // Returns index of argument sought, or 0 if not found |
| 86 | int FindArg(const char *which) { |
| 87 | int i; |
| 88 | |
| 89 | for (i = 1; i <= TotalArgs; i++) |
| 90 | if (stricmp(which, GameArgs[i]) == 0) |
| 91 | return (i); |
| 92 | |
| 93 | return (0); |
| 94 | } |
no outgoing calls
no test coverage detected