Earlier quoted context omitted.
Strtok is not thread safe and can’t be made thread safe without changing the API. You should not use it.
Well, strtok could use thread local variables to store intermediate state, to make it threadsafe while maintaining the same API. Not saying this is a good idea, but technically it would work, no?
This is why it's crucial to get APIs right first time.