home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / vbcc / machines / amiga68k / libsrc / extra / stricmp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-24  |  402 b   |  30 lines

  1.  
  2. #include <ctype.h>
  3. #include <string.h>
  4.  
  5. /*
  6. ** stricmp() - Compare two strings in casesensitivly.
  7. **
  8. ** Made by Kasper B. Graversen (c) 1996
  9. **
  10. ** This is freeware - use at own risc.
  11. */
  12.  
  13. int stricmp(const char *str1, const char *str2)
  14. {
  15.     while(tolower(*str1) == tolower(*str2))
  16.     {
  17.         if(!*str1)
  18.             return(0);
  19.  
  20.         str1++;
  21.         str2++;
  22.     }
  23.  
  24.     return(*str1 - *str2);
  25. }
  26.  
  27.  
  28.  
  29.  
  30.