error caused in MSVCRT.DLL
src = "living room: 9:9:10 / door: 2:9 / Color: White" (not actual definition)
for debugging purposes i'm trying to setColor to "9" (to keep from dealing with atof until i figure this out)Code:void Room::loadData(char *src) { setName(strtok(src, ":/")); setColor(strtok(src, NULL)); //works fine without this line //strtok(src, NULL); //causes same error }
am i using strtok correctly?