Palindrome, problem with isalpha (solved)
I don't know if I am implementing isalpha() correctly and doing something else wrong or it's in the wrong place. Where I have the isalpha now, once I compile and run it, it say everything is palindrome, which is definitely not right. What am I doing wrong?
Here is the palindrome function, I don't think I need to post the main because it was given by my professor and there is no need to change it. If you need it, just say so.
int is_palindrome(const char *message)
int k = tolower(strlen(message) - 1);
for(j = 0; j <= k; j++)
if(isalpha(tolower(message[j]) != tolower(message[k])))