you shouldn't modify a string constant.
man page says...
1 2 3 4 5 6 7 8 9 10 11 12
BUGS
Avoid using these functions. If you do use them, note that:
These functions modify their first argument.
These functions cannot be used on constant strings.
The identity of the delimiting character is lost.
The strtok() function uses a static buffer while parsing, so
it’s not thread safe. Use strtok_r() ifthis matters to you.
@R0mai
Its not about finding a string but splitting using a loop. If I wish to find a string I should use the strstr function but thats not the issue here.
Of course you don't need a special library. All you need to do is search for something that tells your tokens apart from each other (be it a string or a single character), and you know where to make your split. That's why R0mai gave you those functions.