10.06.2009, 21:09
Hello!
This is because strcmp does something more then just checking for equality!
See strcmp-manual for details.
- Draco
This is because strcmp does something more then just checking for equality!
Код:
strcmp will test two strings for equallity. Returns : < 0 if s1 is less than s2 0 if s1 == s2 > 0 if s1 is greater than s2 The net result means that the strcmp return code is logically incorrect because it returns a FALSE value when the strings match.
- Draco