parsing a constant char? (C++)

dvu714

Baseband Member
Messages
33
I needed to parse a constant char and im having a little problem doing it. I am currently trying to use the strtok function to parse and assigning it to my variable with atoi.

But the string is a constant char and it wont let me make changes to it. What can i do.
 
How about making a copy of the string, non-constant so you can parse that and get your results? You'll never, by definition be able to change the constant version, so carry out operations on a "scratch pad" copy. Best notion I have... Hope it helps you out.
 
Back
Top Bottom