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
| 354 | /// <param name="path_len">current len of path</param> |
| 355 | /// <param name="path">pointer to path char</param> |
| 356 | void ExeNameToPathWithoutTrailingDelimiter(int& path_len, char* path) { |
| 357 | while ((path_len > 0) && (path[path_len] != DIRECTORY_SLASH) && (path[path_len] != ':')) path_len--; |
| 358 | path[path_len] = 0; |
| 359 | } |
| 360 | |
| 361 | /// get the path of the exe file (incl. trailing path delimiter) |
| 362 | std::string exe_path() { |
nothing calls this directly
no outgoing calls
no test coverage detected