/* strncmp - Compare two length-limited strings @cs: One string @ct: Another string @count: The maximum number of bytes to compare  */
int strncmp(const char *cs, const char *ct, size_t count)
/* strncmp - Compare two length-limited strings @cs: One string @ct: Another string @count: The maximum number of bytes to compare  */
int strncmp(const char *cs, const char *ct, size_t count)
{
	unsigned char c1, c2;
	while (count) {
		c1 = *cs++;
		c2 = *ct++;
		if (c1 != c2)
			return c1 < c2 ? -1 : 1;
		if (!c1)
			break;
		count--;
	}
	return 0;
}