34 if (code_path !=
NULL) {
35 const char* last_slash = strrchr(code_path,
'/');
36 if (last_slash !=
NULL && last_slash + 1 - code_path > trunc_index)
37 trunc_index = last_slash + 1 - code_path;
38 last_slash = strrchr(code_path,
'\\');
39 if (last_slash !=
NULL && last_slash + 1 - code_path > trunc_index)
40 trunc_index = last_slash + 1 - code_path;
42 *trunc_path = code_path;
void truncate_at(inT32 index)
TESS_API void truncate_path(const char *code_path, STRING *trunc_path)