shithub: scc

ref: 5c0bbb5ff6603cf20c4e3f4ec16dd7b60799cb85
dir: /src/libc/string/strcmp.c/

View raw version
#include <string.h>

#undef strcmp

int
strcmp(const char *s1, const char *s2)
{
	while (*s1 && *s2 && *s1 == *s2)
		++s1, ++s2;
	return *(unsigned char *) s1 - *(unsigned char *) s2;
}