I tried to terminate that char pointer with a null byte like this: char* getFilename(char* file_path) { *(file_path + 2) = '\0'; return file_path; }.
確定! 回上一頁