shithub: scc

ref: a5cc4b7b763e9587dd1d91bd9214df6d6fcc1217
dir: /lib/c/src/strcoll.c/

View raw version
#include <string.h>
#undef strcoll

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