strcmp always returning positive
I don't see the problem here. strcmp() returns zero, if the strings are identical, non-zero otherwise. Non-zero is interpreted as true for the if.
Log in to post a comment.