why strtok shouldn't be used? And why sscanf should use the plugins not the pawn version?
#1

I just curious about that. Actually, ZCMD can use strtok to handle the parameters.
Reply
#2

There are no problems with strtok. However, it's outdated (created in early 2000's) and several better methods have been created such as sscanf, etc that are better and easier to use than strtok.
Reply
#3

strtok is slow and sscanf is fast. Current, sscanf is the fastest string splitter at the moment.
But i can't explain you why sscanf use plugin, and why strtok is slow.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)