+ 3
Somebody pls explain the working of strtok(str, delimiter) function in C???
3 Answers
+ 4
This reference gives details đ
https://en.cppreference.com/w/c/string/byte/strtok
+ 4
token = strtok(NULL, " "); explain this line
+ 3
The use of this is to tell `strtok` to try to find the next token, but `strtok` should use the same string that is given in the first call.