| 91 | } |
| 92 | |
| 93 | const char *parentdir(const char *directory) |
| 94 | { |
| 95 | const char *p = directory + strlen(directory); |
| 96 | while(p > directory && *p != '/' && *p != '\\') p--; |
| 97 | static string parent; |
| 98 | size_t len = p-directory+1; |
| 99 | copystring(parent, directory, len); |
| 100 | return parent; |
| 101 | } |
| 102 | |
| 103 | const char *behindpath(const char *s) |
| 104 | { |
no test coverage detected