bool StrDel(wchar_t* pStrIn,wchar_t* pStrDel)
{
wchar_t *pStrDelBak = (wchar_t*)malloc(65536);
wchar_t *pStrInRec = pStrIn;
wchar_t *pStrDelRec = pStrDel;
while(*pStrDelRec != L'\0')
{
pStrDelBak[*pStrDelRec] = *pStrDelRec;
pStrDelRec++;
}
while(*pStrIn != L'\0')
{
if(pStrDelBak[*pStrIn] == *pStrIn)
{
*pStrInRec = *pStrIn;
pStrInRec++;
}
pStrIn++;
}
*pStrInRec = L'\0';
free(pStrDelBak);
return true;
}
{
wchar_t *pStrDelBak = (wchar_t*)malloc(65536);
wchar_t *pStrInRec = pStrIn;
wchar_t *pStrDelRec = pStrDel;
while(*pStrDelRec != L'\0')
{
pStrDelBak[*pStrDelRec] = *pStrDelRec;
pStrDelRec++;
}
while(*pStrIn != L'\0')
{
if(pStrDelBak[*pStrIn] == *pStrIn)
{
*pStrInRec = *pStrIn;
pStrInRec++;
}
pStrIn++;
}
*pStrInRec = L'\0';
free(pStrDelBak);
return true;
}