69,371
社区成员
发帖
与我相关
我的任务
分享
// find substring
char* pos = strstr(szInput, szFind);
if (NULL != pos)
{
// find position after substring
char* pos2 = pos + strlen(szFind);
while('\0' != *pos2)
{
*pos++ = *pos2++;
}
*pos = *pos2; // copy '\0'
}
// find substring
char* pos = strstr(szInput, szFind);
if (NULL != pos)
{
// find position after substring
char* pos2 = pos + strlen(szFind);
while(NULL != pos2)
{
*pos++ = *pos2++;
}
*pos = *pos2; // copy '\0'
}