int strend(char *s, char *t){ while(strlen(s) != strlen(t)) s++; while(*s == *t){ s++; t++; } if(*(--s) == '\0') return 1; else return 0; }