Extract X and Y Coordinates from String

Viewed 286

I'm having a problem with extracting b2vec2 coordinates from a CCString these are from cocos2dx and box2d.

I have tried using strtk but i could not get it to work

Any help would be great.

Thanks

The Layout of the string is "x,y x,y x,y" i want to put the x and y's into an array of b2vec2

1 Answers
Related