#include dictcmp(s1, s2) char *s1; char *s2; { while(*s1 && *s2) { char c1 = *s1; char c2 = *s2; if(isupper(c1)) c1 = tolower(c1); if(isupper(c2)) c2 = tolower(c2); if(c1 != c2) return c1-c2; s1++; s2++; } return *s1 - *s2; }