intprintResult(char*src)
{
if(src==NULL||strlen(src)<4)
return-1;
for(inti=1;i<strlen(src)-1;++i)
{
intloopdepth=0;
while(1)
{
if(i-loopdepth-1>=0
&&i+loopdepth+2<=strlen(src)-1
&&src[i]==src[i-loopdepth-1]
&&src[i+1]==src[i+loopdepth+2])
{
loopdepth++;
if(loopdepth>=1)
{
for(intj=i-loopdepth;j<i+loopdepth+2;j++)
{
printf("%c",src[j]);
}
printf("\n");
}
}
else
{
break;
}
}
}
return0;
}