07.01.2011, 21:05
@Slice:
It's not. The way DraKiNs uses is a lot faster.
EDIT: Just did a speedtest and realised that strlen is almost 3 times slower. This way:
EDIT2: You're right if we assign the return (of strlen) to a variable first, and I also think this was what you meant.
It's not. The way DraKiNs uses is a lot faster.
EDIT: Just did a speedtest and realised that strlen is almost 3 times slower. This way:
pawn Код:
for(new i; i != strlen(string); ++i)
EDIT2: You're right if we assign the return (of strlen) to a variable first, and I also think this was what you meant.
pawn Код:
for(new i, j = strlen(string); i != j; ++i)