dish/src/dish.cxx
//------------------------------------------------------------------------------------------
// Will just perform case_insensitive string comparation.
//------------------------------------------------------------------------------------------
Will just perform case_insensitive string comparation.
Will just perform case_insensitive string comparation .
static int cmp(char* model, char* key) {
    int modelLength;
    int keyLength;
    int i;
    modelLength=strlen(model);
    keyLength = strlen(key);
    if(modelLength!=keyLength) return 0;
    for(i=0;i<modelLength;i++) {
        if(toupper(model[i])!=toupper(key[i])) return 0;
    }
    return 1;
}
static int cmp ( char * model , char * key ) { int modelLength ; int keyLength ; int i ; modelLength = strlen ( model ) ; keyLength = strlen ( key ) ; if ( modelLength != keyLength ) return 0 ; for ( i = 0 ; i < modelLength ; i ++ ) { if ( toupper ( model [ i ] ) != toupper ( key [ i ] ) ) return 0 ; } return 1 ; }
Will just perform case_insensitive string comparation.
Will just perform case_insensitive string comparation .