News for hackers. Stuff that matters.
Re:String tokenization in C by morbusfonticuli on Saturday December 15, 2018 @06:53AM (#18688060)
> Strtok is not thread safe and can’t be made thread safe without changing the API. You should not use it.

Well, there is already a thread-safe variant [0]: > The strtok() function uses a static buffer while parsing, so it's not thread safe. Use strtok_r() if this matters to you.

[0] https://linux.die.net/man/3/strtok_r

Re:String tokenization in C by seba_dos1 on Saturday December 15, 2018 @07:30AM (#18688140)
...with different API :P
Re:String tokenization in C by enriquto on Saturday December 15, 2018 @09:03AM (#18688414)
of course! the original API cannot be made re-entrant