| 65 | // Get basename and extension e.g. given "C:/bin/cat.exe" returns "cat.exe". |
| 66 | |
| 67 | const char* BaseExt(const char* path) |
| 68 | { |
| 69 | static char s[SLEN]; |
| 70 | char base[SLEN], ext[SLEN]; |
| 71 | splitpath(path, NULL, NULL, base, ext); |
| 72 | sprintf(s, "%s%s", base, ext); |
| 73 | return s; |
| 74 | } |
| 75 | |
| 76 | // Get basename e.g. given "C:/bin/cat.exe" returns "cat". |
| 77 |
no test coverage detected