2 * scratch implementation of strcasecmp(),
3 * in case your C library doesn't have it
7 strcasecmp(char *s1, char *s2)
9 while (toupper(*s1) == toupper(*s2++))
12 return(toupper(*s1) - toupper(*--s2));
15 strncasecmp(char *s1, char *s2, register int n)
17 while (--n >= 0 && toupper(*s1) == toupper(*s2++))
18 if (toupper(*s1++) == '\0')
20 return(n < 0 ? 0 : toupper(*s1) - toupper(*--s2));