3 ms·Use strtok_r()by ape4 2y agoUse strtok_r()lifthrasiir 2y agoThat also works, but strtok is of so limited use that it's probably better to roll your own anyway. For example you can't handle arbitrary whitespace with strtok.