strtok_r is the reentrant variant of strtok. It is POSIX-conformant. However, it is missing from MinGW, and I\'m trying to compile a program that is using it.
Its liberally licensed but integrating it may have some requirements on your project documentation (adding an acknowledgement that the code has been included).