#ifndef HAVE_STRCASECMP int strcasecmp (const char *s, const char *d); #endif #ifndef HAVE_STRCASECMP /* At least one version of HP/UX lacks this */ /* Assumes ASCII encoding */ int strcasecmp (const char *s, const char *d) { register signed int result; while (1){ if (result = (0x20 | *s) - (0x20 | *d)) break; if (!*s) return 0; s++; d++; } return result; } #endif /* HAVE_STRCASECMP */