! exeNameMatch() : @return : a non-zero value if exeName matches test, excluding the extension */
| 268 | @return : a non-zero value if exeName matches test, excluding the extension |
| 269 | */ |
| 270 | static int exeNameMatch(const char* exeName, const char* test) |
| 271 | { |
| 272 | return !strncmp(exeName, test, strlen(test)) && |
| 273 | (exeName[strlen(test)] == '\0' || exeName[strlen(test)] == '.'); |
| 274 | } |
| 275 | |
| 276 | static void errorOut(const char* msg) |
| 277 | { |