strcmp() and !strcmp()
#3

Quote:
Originally Posted by DracoBlue
Hello!

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.
See strcmp-manual for details.

- Draco
Oh, thats how it does Thanks =]
Reply


Messages In This Thread
strcmp() and !strcmp() - by Dreftas - 10.06.2009, 20:56
Re: strcmp() and !strcmp() - by DracoBlue - 10.06.2009, 21:09
Re: strcmp() and !strcmp() - by Dreftas - 10.06.2009, 21:14
Re: strcmp() and !strcmp() - by DracoBlue - 10.06.2009, 21:16
Re: strcmp() and !strcmp() - by Dreftas - 10.06.2009, 21:26
Re: strcmp() and !strcmp() - by DracoBlue - 10.06.2009, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)