19 if(SourceFormat == DestFormat)
25 if(Dest[strlen(Dest) - 1] !=
'/') strcat(Dest,
"/");
51 strcpy(Dest,
"/mnt/hd");
69 strcpy(Dest,
"/mnt/hd");
98 TAP_SPrint(Dest,
"/mnt/hd%s", Source);
107 strcat(CurrentPath, Source);
109 TAP_SPrint(Dest,
"/mnt/hd%s", CurrentPath);
148 strcpy(Dest, &Source[7]);
170 strcpy(Dest, Source);
186 LastSlash = strrchr(Source,
'/');
187 strcpy(Dest, LastSlash + 1);
197 LastSlash = strrchr(Source,
'/');
198 i = (dword)LastSlash - (dword)Source;
199 strncpy(Dest, Source, i);
214 strcpy(Dest,
"/mnt/hd");
215 LastSlash = strrchr(Source,
'/');
216 i = (dword)LastSlash - (dword)Source;
217 strncpy(&Dest[7], Source, i);
227 strcat(CurrentPath, Source);
229 strcpy(Dest,
"/mnt/hd");
230 LastSlash = strrchr(CurrentPath,
'/');
231 i = (dword)LastSlash - (dword)CurrentPath;
232 strncpy(&Dest[7], CurrentPath, i);
248 TAP_SPrint(Dest,
"/mnt/hd%s", Source);
257 strcat(CurrentPath, Source);
259 TAP_SPrint(Dest,
"/mnt/hd%s", CurrentPath);
276 LastSlash = strrchr(Source,
'/');
277 strcpy(Dest, LastSlash + 1);
289 LastSlash = strrchr(Source,
'/');
290 i = (dword)LastSlash - (dword)&Source[7];
291 strncpy(Dest, &Source[7], i);
307 LastSlash = strrchr(Source,
'/');
308 i = (dword)LastSlash - (dword)Source;
309 strncpy(Dest, Source, i);
320 strcpy(Dest, &Source[7]);
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
tPathFormat GetPathType(const char *Source)
int HDD_TAP_GetCurrentDir(char *CurrentDir)
bool StringEndsWith(const char *text, const char *postfix)