Homework/HW05/porter.cc
void toLowerCase (char *kwd)
{
    int i;
    for ( i=0 ; i < strlen(kwd) ; i++ )
        if ( (kwd[i] >= 'A') && (kwd[i] <= 'Z') )
            kwd[i] += 'a' - 'A';
}
// turn all the letters in the word to lower case
turn all the letters in the word to lower case
turn all the letters in the word to lower case
void toLowerCase (char *kwd)
{
    int i;
    for ( i=0 ; i < strlen(kwd) ; i++ )
        if ( (kwd[i] >= 'A') && (kwd[i] <= 'Z') )
            kwd[i] += 'a' - 'A';
}
void toLowerCase ( char * kwd ) { int i ; for ( i = 0 ; i < strlen ( kwd ) ; i ++ ) if ( ( kwd [ i ] >= ' ' ) && ( kwd [ i ] <= ' ' ) ) kwd [ i ] += ' ' - ' ' ; }
turn all the letters in the word to lower case
turn all the letters in the word to lower case