27.06.2011, 16:59
Yes, indeed. I see. Nice function though - Pretty fast.
_______
Here's a VERY fast strCopy (compared to existing ones as far as I know) if someone's interested:
_______
Here's a VERY fast strCopy (compared to existing ones as far as I know) if someone's interested:
pawn Code:
stock strCopy(strSrc[], strDest[], maxLen = -1, destSize = sizeof(strDest))
{
if(maxLen == -1)
maxLen = strlen(strSrc);
return memcpy(strDest, strSrc, _, maxLen << 2, destSize);
}