/* Compare the tail of two strings. Return 0 if whole of either string is same as another's tail part.  */
static int strtailcmp(const char *s1, const char *s2)
/* Compare the tail of two strings. Return 0 if whole of either string is same as another's tail part.  */
static int strtailcmp(const char *s1, const char *s2)
{
	int i1 = strlen(s1);
	int i2 = strlen(s2);
	while (--i1 >= 0 && --i2 >= 0) {
		if (s1[i1] != s2[i2])
			return s1[i1] - s2[i2];
	}
	return 0;
}