/* Compare s with n characters of t. The same as strncmp() except that it checks that s == '\0'.  */
static int strlcmp(const char *, const char *, size_t)
/* Compare s with n characters of t. The same as strncmp() except that it checks that s == '\0'.  */
static int strlcmp(const char *, const char *, size_t)
{
	while (n-- && *t != '\0')
		if (*s != *t)
			return ((unsigned char)*s - (unsigned char)*t);
		else
			++s, ++t;
	return ((unsigned char)*s);
}