basic c question

You might want to double check what "strcmp" returns - it may be counter-intuitive.