| 76 | // Get basename e.g. given "C:/bin/cat.exe" returns "cat". |
| 77 | |
| 78 | const char* Base(const char* path) |
| 79 | { |
| 80 | static char s[SLEN]; |
| 81 | splitpath(path, NULL, NULL, s, NULL); |
| 82 | return s; |
| 83 | } |
| 84 | |
| 85 | // Our own version of splitpath so we don't need the WIN32 code under Unix. |
| 86 | // This has not been tested for every possible combination but seems to work. |
no test coverage detected