View Single Post
naris
AlliedModders Donor
Join Date: Dec 2006
Old 01-28-2011 , 13:28   Re: SMLIB 0.9 BETA (266 Function Stocks)
Reply With Quote #23

Quote:
Originally Posted by berni View Post
hehe, not that easy to understand
the function is actually right, the comment is just wrong.
A size parameter isn't needed, since we we would never make the string bigger, it can only get shorter, that's why we take the max value of an unsigned integer.
Oh, I understand it, but it still makes me cringe. It is a bit of a bad practice. However I do see the point of not having another parameter that isn't really needed.

Last edited by naris; 01-28-2011 at 13:41.
naris is offline