You need strcmp() to compare strings (or write your own function).
Comparing with the == operator compares the pointers, not the contents.