home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * STRICMP.C
- *
- * (C)Copyright 1990, Matthew Dillon, All Rights Reserved
- */
-
- #include <string.h>
- #include <ctype.h>
-
- typedef unsigned char ubyte;
-
- int
- stricmp(s, d)
- const char *s;
- const char *d;
- {
- while (tolower(*(ubyte *)s) == tolower(*(ubyte *)d)) {
- if (*s == 0)
- return(0);
- ++s;
- ++d;
- }
- if ((ubyte)*s < (ubyte)*d)
- return(-1);
- return(1);
- }
-
-
-