If the strings are equal, strcmp returns 0. If the first string is "larger" than the second, strcmp returns a positive integer (showing which element that differs). If the first string is "smaller" than the second, strcmp returns a negative integer (showing which element that differs, you have to use abs() on this since its negative).Originally posted by Perica
Hey,
the only one that worked is the one that Magos wrote, i use MS VC++ 6 by the way.
But i got a question, how come when you do strcmp, do you check if the strings are equall to 0??