char * GetSubstr(char *str, char *pattern){
int i,j;
char *p;
for(i=0;str[i];i++){
for(p=str+i,j=0;pattern[j];j++)
if(str[i+j]!=pattern[j])
break;
if(pattern[j]=='\0')
return p;
}
return NULL;
}