******** Edit ***********
Solved: Your right about the strtok(). It will create an error. But the seg.. fault that I'm currently dealing with does come from the way I calling the storage variable....
Type: Posts; User: navitude
******** Edit ***********
Solved: Your right about the strtok(). It will create an error. But the seg.. fault that I'm currently dealing with does come from the way I calling the storage variable....
thanks,
Thanks! I found the error for the fault is, line 8 in the sample code I gave above.
I think I see a couple of problems. First is a logic error, I am trying to take the whole string...
I have a file with a single string of 150 characters. The string consists of combinations that either refers to room dimensions, door placement or item placement for a rogue game.
I have...
I am using strtok() for the first time to tokenize a string from a file. From checking, I can sucessfully open then file and read the whole string from the file and input it into a string variable.
...