I just changed it to strtok and got the following error:
function 'char* strtok(char*, const char*)'
sketch_apr21b:12: error: at this point in file
I'm almost certain that this is not the error that you got. Post the code, so we can see what you changed the code to.