-
-
[分享]MyPathFindFileName
-
发表于:
2011-10-2 18:37
2482
-
////////////////////////////通过文件路径获得文件名字
char* _stdcall MyPathFileName(char *szPath)
{
char szChar;
char *szTemp=0;
if(szPath==NULL)
return szPath;
while(*szPath)
{
szChar=*szPath;
if(szChar==0x5C||szChar==0x3A||szChar==0x2F)
{
szPath+=1;
szTemp=szPath;
szChar=*szTemp;
if(szChar!=0||szChar!=0x5C||szChar!=0x2F)
;
}
szPath=CharNext(szPath);
}
return szTemp;
}
[课程]FART 脱壳王!加量不加价!FART作者讲授!