OK so I'm trying to convert my string to lower case. Shouldn't this get the job done:
for (int i = 0; i == len; i++) { if(isalpha(sentence[i])) temp[i] = tolower(temp[i]); //Stores all characters as lowercase in a temporary string }
Fix :
for (int i = 0; i < len; i++){
temp[i] = tolower(temp[i]);
}
No need to check isalpha.