int strend(const char *s, const char *t) {
if (s == NULL || t == NULL)
return -1;
const char *ts = s;
const char *tt = t;
while (*ts++);
while (*tt++);
ts -= 2;
tt -= 2;
while (ts-- >= s&& tt-- >= t&& *ts == *tt)
;
if (tt < t)
return 1;
return 0;
}