ref: 0ca62af5f0df449dd940cbd5b7e5723f739df8a0 dir: /lib/c/strcmp.c/
#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; }