home *** CD-ROM | disk | FTP | other *** search
- /* > C.Strlcmp - compare two strings, ignoring case */
-
- #include <ctype.h>
- #include "utils.h"
-
- int strlcmp (const char *s, const char *t)
- {
-
- for ( ; tolower(*s) == tolower(*t); ++s, ++t )
- if ( *s == '\0' )
- return(0);
-
- return (tolower(*s) - tolower(*t));
- }
-