Home
strcoll.c - scc - simple c99 compiler HTML git clone git://git.simple-cc.org/scc DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- strcoll.c (188B) --- 1 #include <string.h> 2 3 #undef strcoll 4 5 int 6 strcoll(const char *s1, const char *s2) 7 { 8 while (*s1 && *s2 && *s1 == *s2) 9 ++s1, ++s2; 10 return *(unsigned char *) s1 - *(unsigned char *) s2; 11 }