c++ - Is strtok() safe to use -


this question has answer here:

i reading lot negative things strtok(), obsolete, not thread safe, etc.

so truth, can use strtok()? , thread safe?

note: using visual c++.

you can use it, it's part of standard library.

it uses internal storage shared across users of function, no it's not thread-safe.

it modifies string hand it, quite scary.

i not recommend using it, in cases.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -