shithub: scc

ref: 2c7a34994ed9fcb63465f8e86de7b70b3a48f6f5
dir: /src/libscc/casecmp.c/

View raw version
static char sccsid[] = "@(#) ./lib/scc/casecmp.c";
#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;
}