Home
casecmp.c - scc - simple c99 compiler HTML git clone git://git.simple-cc.org/scc DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR 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 }