Use a printf() to visually inspect the values at runtime right at the strcmp().
Or, better yet, set a break point and use your debugger. A couple weeks ago I showed my son, who is taking his first Java class, how to use an interactive debugger.
He started laughing when I was stepping through the code. He said it was cheating, and like taking candy from a baby.
Learn to use your debugger.