file reading

If have a line:

(.a=m, .b=x,.c=o)

how to extract each token ignoring space, not knowing how long is the line?
Moreover, I have to check if there are strange char, for example:

(.a=m, ;b=x,.c=o)

is not good for ';' char.
See:
http://www.cplusplus.com/reference/cstring/strtok/?kw=strtok

There is a more upmarket true C++ (vs C) way of tokenising but this one is there to behold, and the sample program is there to copy and adapt.
Topic archived. No new replies allowed.