Trim path to part prior last directory separator Sample: c:\temp\a.exe >> c:\temp || /temp/a >> /temp current len of path pointer to path char
| 350 | /// <param name="path_len">current len of path</param> |
| 351 | /// <param name="path">pointer to path char</param> |
| 352 | void ExeNameToPathWithoutTrailingDelimiter(int& path_len, char* path) { |
| 353 | while ((path_len > 0) && (path[path_len] != DIRECTORY_SLASH) && (path[path_len] != ':')) path_len--; |
| 354 | path[path_len] = 0; |
| 355 | } |
| 356 | |
| 357 | /// get the path of the exe file (incl. trailing path delimiter) |
| 358 | std::string exe_path() { |
nothing calls this directly
no outgoing calls
no test coverage detected