#include<stdlib.h>;
#include<stdio.h>;
#include<string.h>;
#pragma warning (disable:4996);
char*my_dele(char*p, char*q)
{
int m = strlen(q);
printf("%d\n", m);
char*t = p;
while (t= strstr(p, q) != NULL)
{
*p = *(p + m);
p++;
}
return t;
}
int main()
{
char p[] = "Tom cat is a male ccatat";
char q[] = "cat";
char*t = my_dele(p, q);
printf("%s\n", t);
system("pause");
return 0;