warcsum/warcsum.c
/*
 * Compares 2 char*s and returns 0 if equal, 1 otherwise 
 */
Compares 2 char*s and returns 0 if equal, 1 otherwise
Compares 2 char * s and returns 0 if equal 1 otherwise
short
strcmp_case_insensitive (char* a, const char* b)
{
  if (strlen (a) != strlen (b))
    {
      return 1;
    }
  else
    {
      int i = 0;
      while (a[i])
        {
          if (tolower (a[i]) != tolower (b[i]))
            {
              return 1;
            }
          i++;
        }
      return 0;
    }
}
short strcmp_case_insensitive ( char * a , const char * b ) { if ( strlen ( a ) != strlen ( b ) ) { return 1 ; } else { int i = 0 ; while ( a [ i ] ) { if ( tolower ( a [ i ] ) != tolower ( b [ i ] ) ) { return 1 ; } i ++ ; } return 0 ; } }
Compares 2 char*s and returns 0 if equal, 1 otherwise
Compares 2 char * s and returns 0 if equal 1 otherwise