ref: 3e2b9fc5817172876d54d82e4ddc7df78b051212 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; }