strtok() is a Standard C (ISO 9899:1989) function for splitting a string in tokens.
strtok_r is the reentrant variant of strtok. It is POSIX-conformant. However, it is missing from MinGW, and I'm trying …