Hello everyone. I have an odd problem. I am using strtok to parse a comma separated string. It looks something like the following: “1,3,4132”. Right now, I am just trying to grab the first two numbers and set them as the type and version. The problem arises out of the fact that strtok appears to be completely skipping the 1s. My type gets set to “3” and my version gets set to “4”.
When I use something like “2,3,456” it works just fine and my type is “2” my version is “3”. If I use “2,1,456” my type is “2” but my version is “456”.
Does anyone have any idea what might be happening?
Thanks in advance for any comments!