/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #include int strcmp(const char *s1, const char *s2) { while (*s1 == *s2) { if (*s1 == 0) return 0; s1++; s2++; } return *(unsigned const char *)s1 - *(unsigned const char *)(s2); }