What ledow was saying is that 'C' is different from "C", the first is a character, the second is a string containing a single character. (ie you would write "ABC", not 'ABC')

In your code you want to compare the character to another character not to a string, and as previously stated == is not used for string comparison anyway, the function strcmp() is.