Ignoring specific characters in a string
Hi,
So I am writing a program that checks to see whether a string input by the user is a palindrome or not. Part of the problem involves ignoring any character that isn't a letter when verifying the string.
I know that in C, strings are just arrays of characters. So my initial thought was to progress through the array and use something like isalpha() to determine whether or not the character is a letter. The issue is that I don't know how to ignore those characters when I compare the strings. Can anyone give me any insight?
Thanks.
-Sean