[Tutorial] How to use strcmp
#7

Quote:
Originally Posted by JaTochNietDan
View Post
I hope that you realize, dcmd also uses strcmp... it's in the definition.

pawn Code:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0)
Yes, i considered that when i wrote the tutorial, but they way dcmd handles itself is still quicker than strcmp. I may update with a speed test later. - Because it limits the comparing length of strcmp (it limits it using the "length" argument)

dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0)
Reply


Messages In This Thread
How to use strcmp - by Ash. - 16.12.2010, 16:49
Re: How to use strcmp - by WillyP - 16.12.2010, 16:54
Re: How to use strcmp - by Ash. - 16.12.2010, 17:00
Re: How to use strcmp - by [L3th4l] - 16.12.2010, 17:01
Re: How to use strcmp - by WillyP - 16.12.2010, 17:02
Re: How to use strcmp - by JaTochNietDan - 16.12.2010, 17:06
Re: How to use strcmp - by Ash. - 16.12.2010, 17:07
Re: How to use strcmp - by JaTochNietDan - 16.12.2010, 17:09
Re: How to use strcmp - by Ash. - 16.12.2010, 17:10
Re: How to use strcmp - by JaTochNietDan - 16.12.2010, 17:34

Forum Jump:


Users browsing this thread: 2 Guest(s)