ref: 2b9e16f9e9a4f8b06d778d5de834a30ac96fbd53 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; }