scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

casecmp.c (195B)


      1 #include <ctype.h>
      2 #include <scc/scc.h>
      3 
      4 int
      5 casecmp(const char *s1, const char *s2)
      6 {
      7         while (*s1 && toupper(*s1) == toupper(*s2))
      8                 ++s1, ++s2;
      9         return *s1 - *s2;
     10 }