shithub: scc

ref: 38670978b7243e0b2093c553a4c3df03178d9d0a
dir: /src/libscc/casecmp.c/

View raw version
#include <ctype.h>
#include <scc/scc.h>

int
casecmp(const char *s1, const char *s2)
{
        while (*s1 && toupper(*s1) == toupper(*s2))
                ++s1, ++s2;
        return *s1 - *s2;
}