shithub: scc

ref: 8e8710e0cbdc6f1aae24dfaecdbe04325c039a47
dir: /lib/scc/casecmp.c/

View raw version
static char sccsid[] = "@(#) ./lib/scc/casecmp.c";
#include <ctype.h>
#include "../../inc/scc.h"

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