Posts: 91
Threads: 24
Joined: Oct 2010
Reputation:
0
I just curious about that. Actually, ZCMD can use strtok to handle the parameters.
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.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
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.