I have little issue with using strtok() function. I am parsing two files. Firts I load file 1 into buffer. This file constains name of the second file
strtok()
buffer
You can use strtok_r which allows you to have different state pointers.
strtok_r